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/statuswindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/statuswindow.cpp') diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp index 6dd4c29a2..0b7bd63f4 100644 --- a/src/gui/statuswindow.cpp +++ b/src/gui/statuswindow.cpp @@ -148,7 +148,7 @@ StatusWindow::StatusWindow() : mDAttrScroll(new ScrollArea(mDAttrCont, false)), mCharacterPointsLabel(new Label("C")), mCorrectionPointsLabel(nullptr), - mCopyButton(new Button(_("Copy to chat"), "copy", this)) + mCopyButton(new Button(this, _("Copy to chat"), "copy", this)) { listen(CHANNEL_ATTRIBUTES); @@ -805,7 +805,7 @@ ChangeDisplay::ChangeDisplay(const Widget2 *const widget, mNeeded(1), mPoints(new Label(_("Max"))), mDec(nullptr), - mInc(new Button(_("+"), "inc", this)) + mInc(new Button(this, _("+"), "inc", this)) { // Do the layout ContainerPlacer place = mLayout->getPlacer(0, 0); @@ -817,7 +817,7 @@ ChangeDisplay::ChangeDisplay(const Widget2 *const widget, if (Net::getPlayerHandler()->canCorrectAttributes()) { - mDec = new Button(_("-"), "dec", this); + mDec = new Button(this, _("-"), "dec", this); mDec->setWidth(mInc->getWidth()); place(3, 0, mDec); -- cgit v1.2.3-60-g2f50