summaryrefslogtreecommitdiff
path: root/src/gui/helpwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-06 20:57:24 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-06 22:58:35 +0300
commit4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f (patch)
treea776928bb1339cdd29eb2e54d50eb3fa6e3448d7 /src/gui/helpwindow.cpp
parent22ed653d8b630c813333d5c73a4ca02dede2a5a5 (diff)
downloadmanaplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.gz
manaplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.bz2
manaplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.xz
manaplus-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.zip
Improve constructors in some classes.
Diffstat (limited to 'src/gui/helpwindow.cpp')
-rw-r--r--src/gui/helpwindow.cpp7
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);