Commit a7fe5fbc authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

modernize code

parent 44677569
Pipeline #60356 passed with stage
in 4 minutes and 38 seconds
......@@ -197,7 +197,7 @@ int RecurrenceActions::questionSelectedAllCancel(const QString &message,
{
QPointer<QDialog> dialog = new QDialog(parent);
dialog->setWindowTitle(caption);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::No | QDialogButtonBox::Yes, parent);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::No | QDialogButtonBox::Yes, parent);
dialog->setObjectName(QStringLiteral("RecurrenceActions::questionSelectedAllCancel"));
KGuiItem::assign(buttonBox->button(QDialogButtonBox::Yes), actionSelected);
......@@ -232,7 +232,7 @@ int RecurrenceActions::questionSelectedFutureAllCancel(const QString &message,
QPointer<QDialog> dialog = new QDialog(parent);
dialog->setWindowTitle(caption);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::No | QDialogButtonBox::Yes, parent);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::No | QDialogButtonBox::Yes, parent);
dialog->setObjectName(QStringLiteral("RecurrenceActions::questionSelectedFutureAllCancel"));
KGuiItem::assign(buttonBox->button(QDialogButtonBox::Yes), actionSelected);
KGuiItem::assign(buttonBox->button(QDialogButtonBox::No), actionFuture);
......
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