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/statuswindow.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/statuswindow.cpp')
-rw-r--r-- | src/gui/statuswindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |