diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-06 20:57:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-06 22:58:35 +0300 |
commit | 4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f (patch) | |
tree | a776928bb1339cdd29eb2e54d50eb3fa6e3448d7 /src/gui/helpwindow.cpp | |
parent | 22ed653d8b630c813333d5c73a4ca02dede2a5a5 (diff) | |
download | mv-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.gz mv-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.bz2 mv-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.xz mv-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.zip |
Improve constructors in some classes.
Diffstat (limited to 'src/gui/helpwindow.cpp')
-rw-r--r-- | src/gui/helpwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/helpwindow.cpp b/src/gui/helpwindow.cpp index 1099aec3d..61bd54c8c 100644 --- a/src/gui/helpwindow.cpp +++ b/src/gui/helpwindow.cpp @@ -45,7 +45,10 @@ #include "debug.h" HelpWindow::HelpWindow(): - Window(_("Help"), false, nullptr, "help.xml") + Window(_("Help"), false, nullptr, "help.xml"), + ActionListener(), + mBrowserBox(new BrowserBox), + mScrollArea(new ScrollArea(mBrowserBox, true, "help_background.xml")) { setMinWidth(300); setMinHeight(250); @@ -58,9 +61,7 @@ HelpWindow::HelpWindow(): setDefaultSize(500, 400, ImageRect::CENTER); - mBrowserBox = new BrowserBox; mBrowserBox->setOpaque(false); - mScrollArea = new ScrollArea(mBrowserBox, true, "help_background.xml"); Button *const okButton = new Button(_("Close"), "close", this); mBrowserBox->setLinkHandler(this); |