summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 00:52:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit41adf71a823f475b7f12b00e06056b778311da84 (patch)
tree55925f737e884f756d05a71238f207c03070a7ad /src/gui/statuswindow.cpp
parent504219f9df4b9dda139dd832e263a136e51c4851 (diff)
downloadplus-41adf71a823f475b7f12b00e06056b778311da84.tar.gz
plus-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2
plus-41adf71a823f475b7f12b00e06056b778311da84.tar.xz
plus-41adf71a823f475b7f12b00e06056b778311da84.zip
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp6
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);