Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 48f8721e authored by Laurent Montel's avatar Laurent Montel 😁

Add text in constructor directly

parent b8108819
......@@ -61,12 +61,11 @@ SubscriptionDialog::SubscriptionDialog(QWidget *parent, SubscriptionDialog::Subs
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
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"));
connect(mUser1Button, &QPushButton::clicked, this, &SubscriptionDialog::onReloadRequested);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment