diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
commit | aa7119314e1a33d908b98906d30be94eb116d02d (patch) | |
tree | a99092b16529937c20c6ec3a7d00d7f69eabfe35 /src/gui/windows/confirmdialog.cpp | |
parent | 0424b1383e3c07192b4493d5210b4384b5a69a75 (diff) | |
download | manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.gz manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.bz2 manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.xz manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.zip |
Add skin parameter to all button constructors.
Diffstat (limited to 'src/gui/windows/confirmdialog.cpp')
-rw-r--r-- | src/gui/windows/confirmdialog.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/gui/windows/confirmdialog.cpp b/src/gui/windows/confirmdialog.cpp index 5bc485c9f..a77d3bece 100644 --- a/src/gui/windows/confirmdialog.cpp +++ b/src/gui/windows/confirmdialog.cpp @@ -53,13 +53,21 @@ ConfirmDialog::ConfirmDialog(const std::string &restrict title, void ConfirmDialog::postInit() { Window::postInit(); - // TRANSLATORS: confirm dialog button - Button *const yesButton = new Button(this, _("Yes"), "yes", this); - // TRANSLATORS: confirm dialog button - Button *const noButton = new Button(this, _("No"), "no", this); + Button *const yesButton = new Button(this, + // TRANSLATORS: confirm dialog button + _("Yes"), + "yes", + BUTTON_SKIN, + this); + Button *const noButton = new Button(this, + // TRANSLATORS: confirm dialog button + _("No"), + "no", + BUTTON_SKIN, + this); Button *const ignoreButton = mIgnore ? new Button( // TRANSLATORS: confirm dialog button - this, _("Ignore"), "ignore", this) : nullptr; + this, _("Ignore"), "ignore", BUTTON_SKIN, this) : nullptr; const int numRows = mTextBox->getNumberOfRows(); int inWidth = yesButton->getWidth() + noButton->getWidth() + |