Commit 693f9583 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use auto here too

parent 1743e1f2
Pipeline #40254 failed with stage
in 16 minutes and 27 seconds
...@@ -13,7 +13,7 @@ QDialogButtonBox::StandardButton PIMMessageBox::fourBtnMsgBox(QWidget *parent, Q ...@@ -13,7 +13,7 @@ QDialogButtonBox::StandardButton PIMMessageBox::fourBtnMsgBox(QWidget *parent, Q
{ {
QDialog *dialog = new QDialog(parent); QDialog *dialog = new QDialog(parent);
dialog->setWindowTitle(caption); dialog->setWindowTitle(caption);
QDialogButtonBox *box = new QDialogButtonBox(QDialogButtonBox::Yes | QDialogButtonBox::No | QDialogButtonBox::Cancel | QDialogButtonBox::Ok, parent); auto *box = new QDialogButtonBox(QDialogButtonBox::Yes | QDialogButtonBox::No | QDialogButtonBox::Cancel | QDialogButtonBox::Ok, parent);
dialog->setObjectName(QStringLiteral("PIMMessageBox")); dialog->setObjectName(QStringLiteral("PIMMessageBox"));
box->button(QDialogButtonBox::Ok)->setText(button3Text); box->button(QDialogButtonBox::Ok)->setText(button3Text);
box->button(QDialogButtonBox::Yes)->setText(button1Text); box->button(QDialogButtonBox::Yes)->setText(button1Text);
......
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