Commit 43dfb061 authored by Laurent Montel's avatar Laurent Montel 😁

Modernize code

parent e9b96606
Pipeline #33699 passed with stage
in 26 minutes and 24 seconds
......@@ -29,7 +29,7 @@ Q_SIGNALS:
void importAddressbookClicked();
private:
Ui::ImportAddressbookPage *ui = nullptr;
Ui::ImportAddressbookPage *const ui;
};
#endif // IMPORTADDRESSBOOKPAGE_H
......@@ -29,7 +29,7 @@ Q_SIGNALS:
void importCalendarClicked();
private:
Ui::ImportCalendarPage *ui = nullptr;
Ui::ImportCalendarPage *const ui;
};
#endif // IMPORTCALENDARPAGE_H
......@@ -29,7 +29,7 @@ public:
QWidget *parent() const override;
private:
ImportMailPage *m_parent = nullptr;
ImportMailPage *const m_parent;
};
#endif /* IMPORTFILTERINFOGUI_H */
......@@ -28,7 +28,7 @@ Q_SIGNALS:
void importFiltersClicked();
private:
Ui::ImportFilterPage *ui = nullptr;
Ui::ImportFilterPage *const ui;
};
#endif // IMPORTFILTERPAGE_H
......@@ -23,7 +23,7 @@ public:
void addImportError(const QString &log);
private:
Ui::ImportFinishPage *ui = nullptr;
Ui::ImportFinishPage *const ui;
};
#endif // IMPORTFINISHPAGE_H
......@@ -36,7 +36,7 @@ Q_SIGNALS:
private:
void collectionChanged(const Akonadi::Collection &collection);
Ui::ImportMailPage *ui = nullptr;
Ui::ImportMailPage *const ui;
};
#endif // IMPORTMAILPAGE_H
......@@ -27,7 +27,7 @@ Q_SIGNALS:
void importSettingsClicked();
private:
Ui::ImportSettingPage *ui = nullptr;
Ui::ImportSettingPage *const ui;
};
#endif // IMPORTSETTINGPAGE_H
......@@ -31,7 +31,7 @@ private:
void slotEverythingClicked(bool clicked);
void slotComponentClicked();
LibImportWizard::AbstractImporter::TypeSupportedOptions mOptions;
Ui::SelectComponentPage *ui = nullptr;
Ui::SelectComponentPage *const ui;
};
#endif // SELECTCOMPONENTPAGE_H
......@@ -36,7 +36,7 @@ private:
void slotItemDoubleClicked(QListWidgetItem *item);
void slotSelectManualSelectionChanged(bool b);
Ui::SelectProgramPage *ui = nullptr;
Ui::SelectProgramPage *const ui;
};
#endif // SELECTPROGRAMPAGE_H
......@@ -11,7 +11,6 @@
SelectProgramListWidget::SelectProgramListWidget(QWidget *parent)
: QListWidget(parent)
, mNoProgramFound(false)
{
}
......
......@@ -23,7 +23,7 @@ protected:
private:
void generalPaletteChanged();
QColor mTextColor;
bool mNoProgramFound;
bool mNoProgramFound = false;
};
#endif // SELECTPROGRAMLISTWIDGET_H
......@@ -29,7 +29,7 @@ public:
QWidget *parentWidget() const override;
private:
ImportWizard *mImportWizard = nullptr;
ImportWizard *const mImportWizard;
};
#endif // IMPORTWIZARDDISPLAYINFO_H
......@@ -28,8 +28,8 @@ public:
QWidget *parent() const override;
private:
QWidget *m_parent = nullptr;
ManualImportMailPage *mManualImportMailPage = nullptr;
QWidget *const m_parent;
ManualImportMailPage *const mManualImportMailPage;
};
#endif /* IMPORTWIZARDFILTERINFOGUI_H */
......@@ -42,8 +42,8 @@ using namespace MailImporter;
ManualSelectFilterPage::ManualSelectFilterPage(QWidget *parent)
: QWidget(parent)
, mWidget(new Ui::ManualSelectFilterPage)
{
mWidget = new Ui::ManualSelectFilterPage;
mWidget->setupUi(this);
mWidget->mIntroSidebar->setPixmap(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("importwizard/pics/step1.png")));
connect(mWidget->mFilterCombo, QOverload<int>::of(&QComboBox::activated), this, &ManualSelectFilterPage::filterSelected);
......
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