From 41adf71a823f475b7f12b00e06056b778311da84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 00:52:01 +0300 Subject: Add palette inheritance to button class. --- src/gui/didyouknowwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/didyouknowwindow.cpp') 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()); -- cgit v1.2.3-60-g2f50