summaryrefslogtreecommitdiff
path: root/src/gui/didyouknowwindow.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/didyouknowwindow.cpp
parent22ed653d8b630c813333d5c73a4ca02dede2a5a5 (diff)
downloadmanaverse-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.gz
manaverse-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.bz2
manaverse-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.tar.xz
manaverse-4ad3cd45f7a8c3f6d1817705c06223d1a2798a2f.zip
Improve constructors in some classes.
Diffstat (limited to 'src/gui/didyouknowwindow.cpp')
-rw-r--r--src/gui/didyouknowwindow.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/didyouknowwindow.cpp b/src/gui/didyouknowwindow.cpp
index c9e372823..24965848e 100644
--- a/src/gui/didyouknowwindow.cpp
+++ b/src/gui/didyouknowwindow.cpp
@@ -48,7 +48,11 @@ static const int minTip = 1;
static const int maxTip = 16;
DidYouKnowWindow::DidYouKnowWindow():
- Window(_("Did You Know?"), false, nullptr, "didyouknow.xml")
+ Window(_("Did You Know?"), false, nullptr, "didyouknow.xml"),
+ ActionListener(),
+ mBrowserBox(new BrowserBox),
+ mScrollArea(new ScrollArea(mBrowserBox,
+ true, "didyouknow_background.xml"))
{
setMinWidth(300);
setMinHeight(250);
@@ -61,10 +65,7 @@ DidYouKnowWindow::DidYouKnowWindow():
setDefaultSize(500, 400, ImageRect::CENTER);
- mBrowserBox = new BrowserBox;
mBrowserBox->setOpaque(false);
- mScrollArea = new ScrollArea(mBrowserBox,
- true, "didyouknow_background.xml");
Button *const okButton = new Button(_("Close"), "close", this);
mButtonPrev = new Button(_("< Previous"), "prev", this);
mButtonNext = new Button(_("Next >"), "next", this);