QmlProfiler: Use override consistently

clang-tidy fixes from modernize-use-override check.

Change-Id: Ide82798f95e07be6c842a1c2fcf28573d9c635ed
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Tobias Hunger
2018-05-07 15:05:36 +02:00
parent 6947639d9f
commit a939ec8244
10 changed files with 13 additions and 13 deletions

View File

@@ -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);

View File

@@ -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();
};

View File

@@ -42,7 +42,7 @@ class QmlProfilerConfigWidget : public QWidget
public:
explicit QmlProfilerConfigWidget(QmlProfilerSettings *settings, QWidget *parent = nullptr);
~QmlProfilerConfigWidget();
~QmlProfilerConfigWidget() override;
private:
void updateUi();

View File

@@ -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;

View File

@@ -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;

View File

@@ -41,7 +41,7 @@ public:
};
explicit QmlProfilerStateManager(QObject *parent = nullptr);
~QmlProfilerStateManager();
~QmlProfilerStateManager() override;
QmlProfilerState currentState();
bool clientRecording();

View File

@@ -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);

View File

@@ -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;

View File

@@ -50,7 +50,7 @@ class QMLPROFILER_EXPORT QmlProfilerTool : public QObject
public:
QmlProfilerTool();
~QmlProfilerTool();
~QmlProfilerTool() override;
void finalizeRunControl(QmlProfilerRunner *runWorker);

View File

@@ -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();