From 813d08b338754ad523c1ec67c38b6a8388048d39 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Sat, 24 Nov 2018 01:08:18 +0100 Subject: QmakeProjectManager: Modernize modernize-* Change-Id: Ib1d4527e223704f81f9470201735e8c2ebb2d89c Reviewed-by: Orgad Shaneh --- .../qmakeprojectmanager/customwidgetwizard/classdefinition.h | 2 +- .../customwidgetwizard/customwidgetpluginwizardpage.h | 6 +++--- .../customwidgetwizard/customwidgetwidgetswizardpage.h | 8 ++++---- .../qmakeprojectmanager/customwidgetwizard/customwidgetwizard.h | 5 +++-- 4 files changed, 11 insertions(+), 10 deletions(-) (limited to 'src/plugins/qmakeprojectmanager/customwidgetwizard') diff --git a/src/plugins/qmakeprojectmanager/customwidgetwizard/classdefinition.h b/src/plugins/qmakeprojectmanager/customwidgetwizard/classdefinition.h index ab6280659b..7eb0fb37c6 100644 --- a/src/plugins/qmakeprojectmanager/customwidgetwizard/classdefinition.h +++ b/src/plugins/qmakeprojectmanager/customwidgetwizard/classdefinition.h @@ -39,7 +39,7 @@ class ClassDefinition : public QTabWidget Q_OBJECT public: - explicit ClassDefinition(QWidget *parent = 0); + explicit ClassDefinition(QWidget *parent = nullptr); void setClassName(const QString &name); FileNamingParameters fileNamingParameters() const { return m_fileNamingParameters; } diff --git a/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetpluginwizardpage.h b/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetpluginwizardpage.h index 5a712dde3e..3230284c38 100644 --- a/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetpluginwizardpage.h +++ b/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetpluginwizardpage.h @@ -43,12 +43,12 @@ class CustomWidgetPluginWizardPage : public QWizardPage Q_OBJECT public: - explicit CustomWidgetPluginWizardPage(QWidget *parent = 0); - virtual ~CustomWidgetPluginWizardPage(); + explicit CustomWidgetPluginWizardPage(QWidget *parent = nullptr); + ~CustomWidgetPluginWizardPage() override; void init(const CustomWidgetWidgetsWizardPage *widgetsPage); - virtual bool isComplete() const; + bool isComplete() const override; FileNamingParameters fileNamingParameters() const { return m_fileNamingParameters; } void setFileNamingParameters(const FileNamingParameters &fnp) {m_fileNamingParameters = fnp; } diff --git a/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetwidgetswizardpage.h b/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetwidgetswizardpage.h index 6d9ed8d1ad..888ae6edd9 100644 --- a/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetwidgetswizardpage.h +++ b/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetwidgetswizardpage.h @@ -48,12 +48,12 @@ class CustomWidgetWidgetsWizardPage : public QWizardPage Q_OBJECT public: - explicit CustomWidgetWidgetsWizardPage(QWidget *parent = 0); - virtual ~CustomWidgetWidgetsWizardPage(); + explicit CustomWidgetWidgetsWizardPage(QWidget *parent = nullptr); + ~CustomWidgetWidgetsWizardPage() override; QList widgetOptions() const; - virtual bool isComplete() const; + bool isComplete() const override; FileNamingParameters fileNamingParameters() const { return m_fileNamingParameters; } void setFileNamingParameters(const FileNamingParameters &fnp) {m_fileNamingParameters = fnp; } @@ -61,7 +61,7 @@ public: int classCount() const { return m_uiClassDefs.size(); } QString classNameAt(int i) const; - virtual void initializePage(); + void initializePage() override; private Q_SLOTS: void on_classList_classAdded(const QString &name); diff --git a/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetwizard.h b/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetwizard.h index 029c81fea2..7815c2c001 100644 --- a/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetwizard.h +++ b/src/plugins/qmakeprojectmanager/customwidgetwizard/customwidgetwizard.h @@ -38,9 +38,10 @@ public: CustomWidgetWizard(); protected: - Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters ¶meters) const; + Core::BaseFileWizard *create(QWidget *parent, + const Core::WizardDialogParameters ¶meters) const override; - Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const; + Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const override; }; } // namespace Internal -- cgit v1.2.1