forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
@@ -42,7 +42,7 @@ class QmlProfilerConfigWidget : public QWidget
|
||||
|
||||
public:
|
||||
explicit QmlProfilerConfigWidget(QmlProfilerSettings *settings, QWidget *parent = nullptr);
|
||||
~QmlProfilerConfigWidget();
|
||||
~QmlProfilerConfigWidget() override;
|
||||
|
||||
private:
|
||||
void updateUi();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
};
|
||||
|
||||
explicit QmlProfilerStateManager(QObject *parent = nullptr);
|
||||
~QmlProfilerStateManager();
|
||||
~QmlProfilerStateManager() override;
|
||||
|
||||
QmlProfilerState currentState();
|
||||
bool clientRecording();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class QMLPROFILER_EXPORT QmlProfilerTool : public QObject
|
||||
|
||||
public:
|
||||
QmlProfilerTool();
|
||||
~QmlProfilerTool();
|
||||
~QmlProfilerTool() override;
|
||||
|
||||
void finalizeRunControl(QmlProfilerRunner *runWorker);
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user