Commit 84a9682e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

USe auto here

parent 02e5c1df
Pipeline #40292 failed with stage
in 11 minutes
......@@ -30,7 +30,7 @@ ServerSieveSettingsDialog::ServerSieveSettingsDialog(QWidget *parent)
{
setWindowTitle(i18nc("@title:window", "Add Sieve Server"));
QWidget *w = new QWidget;
auto *w = new QWidget;
auto *lay = new QVBoxLayout;
mServerSieveSettings = new ServerSieveSettings;
connect(mServerSieveSettings, &ServerSieveSettings::enableOkButton, this, &ServerSieveSettingsDialog::slotEnableButtonOk);
......@@ -40,7 +40,7 @@ ServerSieveSettingsDialog::ServerSieveSettingsDialog(QWidget *parent)
auto *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(w);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
auto *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
mOkButton = buttonBox->button(QDialogButtonBox::Ok);
mOkButton->setDefault(true);
mOkButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......
......@@ -50,7 +50,7 @@ SieveEditorConfigureDialog::SieveEditorConfigureDialog(QWidget *parent)
connect(buttonBox(), &QDialogButtonBox::rejected, this, &SieveEditorConfigureDialog::reject);
//Server page
QWidget *serverConfigureWiget = new QWidget;
auto *serverConfigureWiget = new QWidget;
auto *layout = new QVBoxLayout(serverConfigureWiget);
mServerWidget = new SieveEditorConfigureServerWidget;
layout->addWidget(mServerWidget);
......@@ -63,7 +63,7 @@ SieveEditorConfigureDialog::SieveEditorConfigureDialog(QWidget *parent)
addPage(serverPageWidgetPage);
//Editor page
QWidget *editorWidget = new QWidget;
auto *editorWidget = new QWidget;
editorWidget->setObjectName(QStringLiteral("editorwidget"));
layout = new QVBoxLayout(editorWidget);
......@@ -78,7 +78,7 @@ SieveEditorConfigureDialog::SieveEditorConfigureDialog(QWidget *parent)
//UserFeedBack config
#ifdef WITH_KUSERFEEDBACK
QWidget *userFeedBackWidget = new QWidget;
auto *userFeedBackWidget = new QWidget;
userFeedBackWidget->setObjectName(QStringLiteral("userFeedBackWidget"));
mUserFeedbackWidget = new KUserFeedback::FeedbackConfigWidget(this);
......
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