summaryrefslogtreecommitdiff
path: root/src/gui/windows/textdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-25 06:12:48 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-25 06:12:48 +0300
commitf55baadfeb6245899497cd472f65f23e905481b9 (patch)
treed5d3dfa758d9d46cf91bc81e0190ee67c7bc48e7 /src/gui/windows/textdialog.cpp
parent52039744fa2e5e116548e5236cd8ba5f5d81702a (diff)
downloadplus-f55baadfeb6245899497cd472f65f23e905481b9.tar.gz
plus-f55baadfeb6245899497cd472f65f23e905481b9.tar.bz2
plus-f55baadfeb6245899497cd472f65f23e905481b9.tar.xz
plus-f55baadfeb6245899497cd472f65f23e905481b9.zip
Remove default parameters from containerplacer.
Diffstat (limited to 'src/gui/windows/textdialog.cpp')
-rw-r--r--src/gui/windows/textdialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/textdialog.cpp b/src/gui/windows/textdialog.cpp
index 87c9dcfa8..ee6e58a00 100644
--- a/src/gui/windows/textdialog.cpp
+++ b/src/gui/windows/textdialog.cpp
@@ -59,19 +59,19 @@ TextDialog::TextDialog(const std::string &restrict title,
// TRANSLATORS: text dialog button
Button *const cancelButton = new Button(this, _("Cancel"), "CANCEL", this);
- place(0, 0, textLabel, 4);
+ place(0, 0, textLabel, 4, 1);
if (isPassword)
{
mPasswordField = new PasswordField(this);
- place(0, 1, mPasswordField, 4);
+ place(0, 1, mPasswordField, 4, 1);
}
else
{
mTextField = new TextField(this);
- place(0, 1, mTextField, 4);
+ place(0, 1, mTextField, 4, 1);
}
- place(2, 2, mOkButton);
- place(3, 2, cancelButton);
+ place(2, 2, mOkButton, 1, 1);
+ place(3, 2, cancelButton, 1, 1);
int width = getFont()->getWidth(title);
if (width < textLabel->getWidth())