summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
commit01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch)
tree37294c079b9a05768b7380f7595784eb73485769 /src/gui/windows/logindialog.cpp
parent072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff)
downloadplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz
plus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2
plus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz
plus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip
Add strong typed bool type Visible.
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r--src/gui/windows/logindialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 47b2ae447..644c9f2ad 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -132,7 +132,7 @@ LoginDialog::LoginDialog(LoginData *const data,
| UpdateType::Custom) ^ UpdateType::Custom);
if (!mCustomUpdateHost->isSelected())
- mUpdateHostText->setVisible(false);
+ mUpdateHostText->setVisible(Visible_false);
mUserField->setActionEventId("login");
mPassField->setActionEventId("login");
@@ -170,7 +170,7 @@ LoginDialog::LoginDialog(LoginData *const data,
void LoginDialog::postInit()
{
Window::postInit();
- setVisible(true);
+ setVisible(Visible_true);
const int h = 200;
if (mUpdateHostLabel)
@@ -234,12 +234,13 @@ void LoginDialog::action(const ActionEvent &event)
}
else if (eventId == "customhost")
{
- mUpdateHostText->setVisible(mCustomUpdateHost->isSelected());
+ mUpdateHostText->setVisible(fromBool(
+ mCustomUpdateHost->isSelected(), Visible));
}
else if (eventId == "updateselect")
{
mCustomUpdateHost->setSelected(false);
- mUpdateHostText->setVisible(false);
+ mUpdateHostText->setVisible(Visible_false);
}
}