summaryrefslogtreecommitdiff
path: root/src/gui/widgets/selldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-09 02:22:21 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-09 02:22:21 +0300
commitaa7119314e1a33d908b98906d30be94eb116d02d (patch)
treea99092b16529937c20c6ec3a7d00d7f69eabfe35 /src/gui/widgets/selldialog.cpp
parent0424b1383e3c07192b4493d5210b4384b5a69a75 (diff)
downloadplus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.gz
plus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.bz2
plus-aa7119314e1a33d908b98906d30be94eb116d02d.tar.xz
plus-aa7119314e1a33d908b98906d30be94eb116d02d.zip
Add skin parameter to all button constructors.
Diffstat (limited to 'src/gui/widgets/selldialog.cpp')
-rw-r--r--src/gui/widgets/selldialog.cpp41
1 files changed, 31 insertions, 10 deletions
diff --git a/src/gui/widgets/selldialog.cpp b/src/gui/widgets/selldialog.cpp
index 1d2b7a91c..dc612c0ac 100644
--- a/src/gui/widgets/selldialog.cpp
+++ b/src/gui/widgets/selldialog.cpp
@@ -114,9 +114,14 @@ void SellDialog::postInit()
// TRANSLATORS: sell dialog button
mAdvanced == Advanced_true ? _("Add") : _("Sell"),
"presell",
+ BUTTON_SKIN,
+ this);
+ mQuitButton = new Button(this,
+ // TRANSLATORS: sell dialog button
+ _("Quit"),
+ "quit",
+ BUTTON_SKIN,
this);
- // TRANSLATORS: sell dialog button
- mQuitButton = new Button(this, _("Quit"), "quit", this);
initButtons();
@@ -133,12 +138,24 @@ void SellDialog::postInit()
if (mIsSell == IsSell_true)
{
- // TRANSLATORS: sell dialog button
- mIncreaseButton = new Button(this, _("+"), "inc", this);
- // TRANSLATORS: sell dialog button
- mDecreaseButton = new Button(this, _("-"), "dec", this);
- // TRANSLATORS: sell dialog button
- mAddMaxButton = new Button(this, _("Max"), "max", this);
+ mIncreaseButton = new Button(this,
+ // TRANSLATORS: sell dialog button
+ _("+"),
+ "inc",
+ BUTTON_SKIN,
+ this);
+ mDecreaseButton = new Button(this,
+ // TRANSLATORS: sell dialog button
+ _("-"),
+ "dec",
+ BUTTON_SKIN,
+ this);
+ mAddMaxButton = new Button(this,
+ // TRANSLATORS: sell dialog button
+ _("Max"),
+ "max",
+ BUTTON_SKIN,
+ this);
mSlider = new Slider(this, 1.0, 1.0);
mQuantityLabel = new Label(this, strprintf(
@@ -149,8 +166,12 @@ void SellDialog::postInit()
"", ""));
if (mAdvanced == Advanced_true)
{
- // TRANSLATORS: sell dialog button
- mConfirmButton = new Button(this, _("Sell"), "confirm", this);
+ mConfirmButton = new Button(this,
+ // TRANSLATORS: sell dialog button
+ _("Sell"),
+ "confirm",
+ BUTTON_SKIN,
+ this);
mConfirmButton->setEnabled(false);
}