summaryrefslogtreecommitdiff
path: root/src/gui/didyouknowwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-16 20:39:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-16 20:39:33 +0300
commitbc92643d8db723b5049db2dbad1ce052a0ae77a9 (patch)
tree4471be99711ee310c811e990d7c210e2393aeb6e /src/gui/didyouknowwindow.cpp
parent82cc576b7896f39bcf71aa85c8c4b3ef786c065b (diff)
downloadmv-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.gz
mv-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.bz2
mv-bc92643d8db723b5049db2dbad1ce052a0ae77a9.tar.xz
mv-bc92643d8db723b5049db2dbad1ce052a0ae77a9.zip
Fix code style and some other minor issues.
Diffstat (limited to 'src/gui/didyouknowwindow.cpp')
-rw-r--r--src/gui/didyouknowwindow.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/didyouknowwindow.cpp b/src/gui/didyouknowwindow.cpp
index fb90d0576..6e7891967 100644
--- a/src/gui/didyouknowwindow.cpp
+++ b/src/gui/didyouknowwindow.cpp
@@ -52,7 +52,11 @@ DidYouKnowWindow::DidYouKnowWindow():
ActionListener(),
mBrowserBox(new BrowserBox),
mScrollArea(new ScrollArea(mBrowserBox,
- true, "didyouknow_background.xml"))
+ true, "didyouknow_background.xml")),
+ mButtonPrev(new Button(_("< Previous"), "prev", this)),
+ mButtonNext(new Button(_("Next >"), "next", this)),
+ mOpenAgainCheckBox(new CheckBox(_("Auto open this window"),
+ config.getBoolValue("showDidYouKnow"), this, "openagain"))
{
setMinWidth(300);
setMinHeight(250);
@@ -62,15 +66,10 @@ DidYouKnowWindow::DidYouKnowWindow():
setStickyButtonLock(true);
setupWindow->registerWindowForReset(this);
-
setDefaultSize(500, 400, ImageRect::CENTER);
mBrowserBox->setOpaque(false);
Button *const okButton = new Button(_("Close"), "close", this);
- mButtonPrev = new Button(_("< Previous"), "prev", this);
- mButtonNext = new Button(_("Next >"), "next", this);
- mOpenAgainCheckBox = new CheckBox(_("Auto open this window"),
- config.getBoolValue("showDidYouKnow"), this, "openagain");
mBrowserBox->setLinkHandler(this);
mBrowserBox->setFont(gui->getHelpFont());