aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-05-07 15:05:36 +0200
committerTobias Hunger <tobias.hunger@qt.io>2018-05-07 13:37:07 +0000
commita939ec82440daa035bdf306beb075533cf99aa28 (patch)
treecf8700f4b51e33dab677753e2dcb4de5bbfd3ed8
parent6947639d9f6412776b3e132729a16da9973223ed (diff)
QmlProfiler: Use override consistently
clang-tidy fixes from modernize-use-override check. Change-Id: Ide82798f95e07be6c842a1c2fcf28573d9c635ed Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerattachdialog.h2
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.h2
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerconfigwidget.h2
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerrangemodel.h2
-rw-r--r--src/plugins/qmlprofiler/qmlprofilersettings.h6
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerstatemanager.h2
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertextmark.h2
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertimelinemodel.h2
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.h2
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertraceclient.h4
10 files changed, 13 insertions, 13 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerattachdialog.h b/src/plugins/qmlprofiler/qmlprofilerattachdialog.h
index 29fac3eb13..d61576ace8 100644
--- a/src/plugins/qmlprofiler/qmlprofilerattachdialog.h
+++ b/src/plugins/qmlprofiler/qmlprofilerattachdialog.h
@@ -40,7 +40,7 @@ class QmlProfilerAttachDialog : public QDialog
public:
explicit QmlProfilerAttachDialog(QWidget *parent = nullptr);
- ~QmlProfilerAttachDialog();
+ ~QmlProfilerAttachDialog() override;
int port() const;
void setPort(const int port);
diff --git a/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.h b/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.h
index ef6695d9bc..209caaafac 100644
--- a/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.h
+++ b/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.h
@@ -43,7 +43,7 @@ public:
State *update(const Timeline::TimelineAbstractRenderer *renderer,
const Timeline::TimelineRenderState *parentState,
State *oldState, int indexFrom, int indexTo, bool stateChanged,
- float spacing) const;
+ float spacing) const override;
protected:
QmlProfilerBindingLoopsRenderPass();
};
diff --git a/src/plugins/qmlprofiler/qmlprofilerconfigwidget.h b/src/plugins/qmlprofiler/qmlprofilerconfigwidget.h
index 88d53fb85a..63e24c64c7 100644
--- a/src/plugins/qmlprofiler/qmlprofilerconfigwidget.h
+++ b/src/plugins/qmlprofiler/qmlprofilerconfigwidget.h
@@ -42,7 +42,7 @@ class QmlProfilerConfigWidget : public QWidget
public:
explicit QmlProfilerConfigWidget(QmlProfilerSettings *settings, QWidget *parent = nullptr);
- ~QmlProfilerConfigWidget();
+ ~QmlProfilerConfigWidget() override;
private:
void updateUi();
diff --git a/src/plugins/qmlprofiler/qmlprofilerrangemodel.h b/src/plugins/qmlprofiler/qmlprofilerrangemodel.h
index 1ca4af7fca..9952a8772c 100644
--- a/src/plugins/qmlprofiler/qmlprofilerrangemodel.h
+++ b/src/plugins/qmlprofiler/qmlprofilerrangemodel.h
@@ -70,7 +70,7 @@ public:
int typeId(int index) const override;
- virtual QList<const Timeline::TimelineRenderPass *> supportedRenderPasses() const override;
+ QList<const Timeline::TimelineRenderPass *> supportedRenderPasses() const override;
protected:
void loadEvent(const QmlEvent &event, const QmlEventType &type) override;
diff --git a/src/plugins/qmlprofiler/qmlprofilersettings.h b/src/plugins/qmlprofiler/qmlprofilersettings.h
index 58bbbeef37..6e273757f2 100644
--- a/src/plugins/qmlprofiler/qmlprofilersettings.h
+++ b/src/plugins/qmlprofiler/qmlprofilersettings.h
@@ -35,7 +35,7 @@ class QmlProfilerSettings : public ProjectExplorer::ISettingsAspect
Q_OBJECT
public:
QmlProfilerSettings(ProjectExplorer::RunConfiguration *runConfiguration = nullptr);
- QWidget *createConfigWidget(QWidget *parent);
+ QWidget *createConfigWidget(QWidget *parent) override;
bool flushEnabled() const;
void setFlushEnabled(bool flushEnabled);
@@ -55,8 +55,8 @@ signals:
void changed();
protected:
- void toMap(QVariantMap &map) const;
- void fromMap(const QVariantMap &map);
+ void toMap(QVariantMap &map) const override;
+ void fromMap(const QVariantMap &map) override;
private:
bool m_flushEnabled;
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatemanager.h b/src/plugins/qmlprofiler/qmlprofilerstatemanager.h
index b0ce30440b..010ebeb749 100644
--- a/src/plugins/qmlprofiler/qmlprofilerstatemanager.h
+++ b/src/plugins/qmlprofiler/qmlprofilerstatemanager.h
@@ -41,7 +41,7 @@ public:
};
explicit QmlProfilerStateManager(QObject *parent = nullptr);
- ~QmlProfilerStateManager();
+ ~QmlProfilerStateManager() override;
QmlProfilerState currentState();
bool clientRecording();
diff --git a/src/plugins/qmlprofiler/qmlprofilertextmark.h b/src/plugins/qmlprofiler/qmlprofilertextmark.h
index 6747498361..09beb9bf88 100644
--- a/src/plugins/qmlprofiler/qmlprofilertextmark.h
+++ b/src/plugins/qmlprofiler/qmlprofilertextmark.h
@@ -53,7 +53,7 @@ class QmlProfilerTextMarkModel : public QObject
{
public:
QmlProfilerTextMarkModel(QObject *parent = nullptr);
- ~QmlProfilerTextMarkModel();
+ ~QmlProfilerTextMarkModel() override;
void clear();
void addTextMarkId(int typeId, const QmlEventLocation &location);
diff --git a/src/plugins/qmlprofiler/qmlprofilertimelinemodel.h b/src/plugins/qmlprofiler/qmlprofilertimelinemodel.h
index 3c770dd98a..94583f7e07 100644
--- a/src/plugins/qmlprofiler/qmlprofilertimelinemodel.h
+++ b/src/plugins/qmlprofiler/qmlprofilertimelinemodel.h
@@ -51,7 +51,7 @@ public:
ProfileFeature mainFeature() const;
virtual bool accepted(const QmlEventType &type) const;
- bool handlesTypeId(int typeId) const;
+ bool handlesTypeId(int typeId) const override;
QVariantMap locationFromTypeId(int index) const;
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.h b/src/plugins/qmlprofiler/qmlprofilertool.h
index c963b49fa9..721184a1f2 100644
--- a/src/plugins/qmlprofiler/qmlprofilertool.h
+++ b/src/plugins/qmlprofiler/qmlprofilertool.h
@@ -50,7 +50,7 @@ class QMLPROFILER_EXPORT QmlProfilerTool : public QObject
public:
QmlProfilerTool();
- ~QmlProfilerTool();
+ ~QmlProfilerTool() override;
void finalizeRunControl(QmlProfilerRunner *runWorker);
diff --git a/src/plugins/qmlprofiler/qmlprofilertraceclient.h b/src/plugins/qmlprofiler/qmlprofilertraceclient.h
index fef0ba4092..3ff761470e 100644
--- a/src/plugins/qmlprofiler/qmlprofilertraceclient.h
+++ b/src/plugins/qmlprofiler/qmlprofilertraceclient.h
@@ -52,8 +52,8 @@ public:
bool isRecording() const;
void setRecording(bool);
quint64 recordedFeatures() const;
- virtual void messageReceived(const QByteArray &) override;
- virtual void stateChanged(State status) override;
+ void messageReceived(const QByteArray &) override;
+ void stateChanged(State status) override;
void clearEvents();
void clear();