diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-28 00:55:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-28 00:55:13 +0300 |
commit | 01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch) | |
tree | 37294c079b9a05768b7380f7595784eb73485769 /src/gui/windows/setupwindow.cpp | |
parent | 072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff) | |
download | ManaVerse-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz ManaVerse-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2 ManaVerse-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz ManaVerse-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip |
Add strong typed bool type Visible.
Diffstat (limited to 'src/gui/windows/setupwindow.cpp')
-rw-r--r-- | src/gui/windows/setupwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/windows/setupwindow.cpp b/src/gui/windows/setupwindow.cpp index f5832320f..8dabbc36f 100644 --- a/src/gui/windows/setupwindow.cpp +++ b/src/gui/windows/setupwindow.cpp @@ -174,7 +174,7 @@ void SetupWindow::action(const ActionEvent &event) if (eventId == "Apply") { - setVisible(false); + setVisible(Visible_false); for_each(mTabs.begin(), mTabs.end(), std::mem_fun(&SetupTab::apply)); } else if (eventId == "Cancel") @@ -274,14 +274,14 @@ void SetupWindow::hideWindows() { Window *const window = *it; if (window && !window->isSticky()) - window->setVisible(false); + window->setVisible(Visible_false); } - setVisible(false); + setVisible(Visible_false); } void SetupWindow::doCancel() { - setVisible(false); + setVisible(Visible_false); for_each(mTabs.begin(), mTabs.end(), std::mem_fun(&SetupTab::cancel)); } @@ -291,9 +291,9 @@ void SetupWindow::activateTab(const std::string &name) mPanel->setSelectedTabByName(tmp); } -void SetupWindow::setVisible(bool visible) +void SetupWindow::setVisible(Visible visible) { - touchManager.setTempHide(visible); + touchManager.setTempHide(visible == Visible_true); Window::setVisible(visible); } |