From 8413b6c8e43200e05538751a257b224018757911 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 18:20:59 +0300 Subject: add comments about virtual method calls in constructor in okdialog. --- src/gui/windows/okdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.2.3-70-g09d2