summaryrefslogtreecommitdiff
path: root/src/gui/windows/confirmdialog.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/confirmdialog.cpp
parent0424b1383e3c07192b4493d5210b4384b5a69a75 (diff)
downloadmv-aa7119314e1a33d908b98906d30be94eb116d02d.tar.gz
mv-aa7119314e1a33d908b98906d30be94eb116d02d.tar.bz2
mv-aa7119314e1a33d908b98906d30be94eb116d02d.tar.xz
mv-aa7119314e1a33d908b98906d30be94eb116d02d.zip
Add skin parameter to all button constructors.
Diffstat (limited to 'src/gui/windows/confirmdialog.cpp')
-rw-r--r--src/gui/windows/confirmdialog.cpp18
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() +