diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-18 18:20:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:21 +0300 |
commit | 8413b6c8e43200e05538751a257b224018757911 (patch) | |
tree | 576a363c2a2dee914c966add2aa51e3f3ba9309d /src/gui/windows | |
parent | e79b5dec8f49d7585e9c3106e9321fee0e3386e9 (diff) | |
download | manaverse-8413b6c8e43200e05538751a257b224018757911.tar.gz manaverse-8413b6c8e43200e05538751a257b224018757911.tar.bz2 manaverse-8413b6c8e43200e05538751a257b224018757911.tar.xz manaverse-8413b6c8e43200e05538751a257b224018757911.zip |
add comments about virtual method calls in constructor in okdialog.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/okdialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/okdialog.cpp b/src/gui/windows/okdialog.cpp index 49bf8aa0a..99c908563 100644 --- a/src/gui/windows/okdialog.cpp +++ b/src/gui/windows/okdialog.cpp @@ -65,6 +65,7 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg, okButton->setPosition((width - okButton->getWidth()) / 2, mTextBox->getHeight() + getOption("buttonPadding", 8)); + // +++ virtual method call add(mTextBox); add(okButton); @@ -72,6 +73,7 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg, center(); else centerHorisontally(); + // +++ virtual method call setVisible(true); okButton->requestFocus(); |