diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 00:52:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 41adf71a823f475b7f12b00e06056b778311da84 (patch) | |
tree | 55925f737e884f756d05a71238f207c03070a7ad /src/gui/didyouknowwindow.cpp | |
parent | 504219f9df4b9dda139dd832e263a136e51c4851 (diff) | |
download | ManaVerse-41adf71a823f475b7f12b00e06056b778311da84.tar.gz ManaVerse-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2 ManaVerse-41adf71a823f475b7f12b00e06056b778311da84.tar.xz ManaVerse-41adf71a823f475b7f12b00e06056b778311da84.zip |
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/didyouknowwindow.cpp')
-rw-r--r-- | src/gui/didyouknowwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/didyouknowwindow.cpp b/src/gui/didyouknowwindow.cpp index c6880b420..3e47a3952 100644 --- a/src/gui/didyouknowwindow.cpp +++ b/src/gui/didyouknowwindow.cpp @@ -53,8 +53,8 @@ DidYouKnowWindow::DidYouKnowWindow(): mBrowserBox(new BrowserBox(this)), mScrollArea(new ScrollArea(mBrowserBox, true, "didyouknow_background.xml")), - mButtonPrev(new Button(_("< Previous"), "prev", this)), - mButtonNext(new Button(_("Next >"), "next", this)), + mButtonPrev(new Button(this, _("< Previous"), "prev", this)), + mButtonNext(new Button(this, _("Next >"), "next", this)), mOpenAgainCheckBox(new CheckBox(_("Auto open this window"), config.getBoolValue("showDidYouKnow"), this, "openagain")) { @@ -69,7 +69,7 @@ DidYouKnowWindow::DidYouKnowWindow(): setDefaultSize(500, 400, ImageRect::CENTER); mBrowserBox->setOpaque(false); - Button *const okButton = new Button(_("Close"), "close", this); + Button *const okButton = new Button(this, _("Close"), "close", this); mBrowserBox->setLinkHandler(this); mBrowserBox->setFont(gui->getHelpFont()); |