summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-18 07:54:43 +0100
committerMontel Laurent <[email protected]>2017-12-18 07:54:43 +0100
commit48f8721ea621c57bd36def4d23f8adbe81d7d16e (patch)
treea87a663f8f47cb8e2ff6cdf63efa17efed7fa4bb
parentb8108819793cd884ae2746f94ff1874521bfb177 (diff)
Add text in constructor directly
-rw-r--r--resources/imap/subscriptiondialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/resources/imap/subscriptiondialog.cpp b/resources/imap/subscriptiondialog.cpp
index 92074cb..2e8e81f 100644
--- a/resources/imap/subscriptiondialog.cpp
+++ b/resources/imap/subscriptiondialog.cpp
@@ -61,12 +61,11 @@ SubscriptionDialog::SubscriptionDialog(QWidget *parent, SubscriptionDialog::Subs
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
- mUser1Button = new QPushButton;
+ mUser1Button = new QPushButton(i18nc("@action:button", "Reload &List"), this);
buttonBox->addButton(mUser1Button, QDialogButtonBox::ActionRole);
connect(buttonBox, &QDialogButtonBox::accepted, this, &SubscriptionDialog::slotAccepted);
connect(buttonBox, &QDialogButtonBox::rejected, this, &SubscriptionDialog::reject);
- mUser1Button->setText(i18nc("@action:button", "Reload &List"));
mUser1Button->setEnabled(false);
connect(mUser1Button, &QPushButton::clicked, this, &SubscriptionDialog::onReloadRequested);