summaryrefslogtreecommitdiff
path: root/src/gui/windows/textdialog.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/windows/textdialog.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/windows/textdialog.cpp')
-rw-r--r--src/gui/windows/textdialog.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/windows/textdialog.cpp b/src/gui/windows/textdialog.cpp
index adc0d1a23..51a20bced 100644
--- a/src/gui/windows/textdialog.cpp
+++ b/src/gui/windows/textdialog.cpp
@@ -50,14 +50,18 @@ TextDialog::TextDialog(const std::string &restrict title,
mTextField(nullptr),
mPasswordField(nullptr),
// TRANSLATORS: text dialog button
- mOkButton(new Button(this, _("OK"), "OK", this)),
+ mOkButton(new Button(this, _("OK"), "OK", BUTTON_SKIN, this)),
mEnabledKeyboard(keyboard.isEnabled())
{
keyboard.setEnabled(false);
Label *const textLabel = new Label(this, msg);
- // TRANSLATORS: text dialog button
- Button *const cancelButton = new Button(this, _("Cancel"), "CANCEL", this);
+ Button *const cancelButton = new Button(this,
+ // TRANSLATORS: text dialog button
+ _("Cancel"),
+ "CANCEL",
+ BUTTON_SKIN,
+ this);
place(0, 0, textLabel, 4, 1);
if (isPassword)