summaryrefslogtreecommitdiff
path: root/src/gui/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-08 22:13:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-09 00:27:32 +0300
commit6f40ef0431fde571cec586c35d66de8ba0147986 (patch)
treed4d8e0778b7ca6c9aa354fd609a8d2d407bc6556 /src/gui/logindialog.cpp
parent89ea09f5d8ccbf65cf0a8f0abee667ff6cf431dc (diff)
downloadmv-6f40ef0431fde571cec586c35d66de8ba0147986.tar.gz
mv-6f40ef0431fde571cec586c35d66de8ba0147986.tar.bz2
mv-6f40ef0431fde571cec586c35d66de8ba0147986.tar.xz
mv-6f40ef0431fde571cec586c35d66de8ba0147986.zip
improve logindialog class.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r--src/gui/logindialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp
index a9d9874c6..7e10a7766 100644
--- a/src/gui/logindialog.cpp
+++ b/src/gui/logindialog.cpp
@@ -61,7 +61,7 @@ struct OpenUrlListener : public gcn::ActionListener
A_DELETE_COPY(OpenUrlListener)
- void action(const gcn::ActionEvent &event)
+ void action(const gcn::ActionEvent &event) override
{
if (event.getId() == "yes")
openBrowser(url);
@@ -91,12 +91,12 @@ class UpdateTypeModel final : public gcn::ListModel
virtual ~UpdateTypeModel()
{ }
- virtual int getNumberOfElements()
+ virtual int getNumberOfElements() override
{
return 3;
}
- virtual std::string getElementAt(int i)
+ virtual std::string getElementAt(int i) override
{
if (i >= getNumberOfElements() || i < 0)
return "???";
@@ -118,14 +118,14 @@ class UpdateListModel final : public gcn::ListModel
virtual ~UpdateListModel()
{ }
- virtual int getNumberOfElements()
+ virtual int getNumberOfElements() override
{
if (!mLoginData)
return 0;
return static_cast<int>(mLoginData->updateHosts.size());
}
- virtual std::string getElementAt(int i)
+ virtual std::string getElementAt(int i) override
{
if (!mLoginData || i >= getNumberOfElements() || i < 0)
return "???";