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:
|
public:
|
||||||
explicit QmlProfilerAttachDialog(QWidget *parent = nullptr);
|
explicit QmlProfilerAttachDialog(QWidget *parent = nullptr);
|
||||||
~QmlProfilerAttachDialog();
|
~QmlProfilerAttachDialog() override;
|
||||||
|
|
||||||
int port() const;
|
int port() const;
|
||||||
void setPort(const int port);
|
void setPort(const int port);
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public:
|
|||||||
State *update(const Timeline::TimelineAbstractRenderer *renderer,
|
State *update(const Timeline::TimelineAbstractRenderer *renderer,
|
||||||
const Timeline::TimelineRenderState *parentState,
|
const Timeline::TimelineRenderState *parentState,
|
||||||
State *oldState, int indexFrom, int indexTo, bool stateChanged,
|
State *oldState, int indexFrom, int indexTo, bool stateChanged,
|
||||||
float spacing) const;
|
float spacing) const override;
|
||||||
protected:
|
protected:
|
||||||
QmlProfilerBindingLoopsRenderPass();
|
QmlProfilerBindingLoopsRenderPass();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class QmlProfilerConfigWidget : public QWidget
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QmlProfilerConfigWidget(QmlProfilerSettings *settings, QWidget *parent = nullptr);
|
explicit QmlProfilerConfigWidget(QmlProfilerSettings *settings, QWidget *parent = nullptr);
|
||||||
~QmlProfilerConfigWidget();
|
~QmlProfilerConfigWidget() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateUi();
|
void updateUi();
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public:
|
|||||||
|
|
||||||
int typeId(int index) const override;
|
int typeId(int index) const override;
|
||||||
|
|
||||||
virtual QList<const Timeline::TimelineRenderPass *> supportedRenderPasses() const override;
|
QList<const Timeline::TimelineRenderPass *> supportedRenderPasses() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void loadEvent(const QmlEvent &event, const QmlEventType &type) override;
|
void loadEvent(const QmlEvent &event, const QmlEventType &type) override;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class QmlProfilerSettings : public ProjectExplorer::ISettingsAspect
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
QmlProfilerSettings(ProjectExplorer::RunConfiguration *runConfiguration = nullptr);
|
QmlProfilerSettings(ProjectExplorer::RunConfiguration *runConfiguration = nullptr);
|
||||||
QWidget *createConfigWidget(QWidget *parent);
|
QWidget *createConfigWidget(QWidget *parent) override;
|
||||||
|
|
||||||
bool flushEnabled() const;
|
bool flushEnabled() const;
|
||||||
void setFlushEnabled(bool flushEnabled);
|
void setFlushEnabled(bool flushEnabled);
|
||||||
@@ -55,8 +55,8 @@ signals:
|
|||||||
void changed();
|
void changed();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void toMap(QVariantMap &map) const;
|
void toMap(QVariantMap &map) const override;
|
||||||
void fromMap(const QVariantMap &map);
|
void fromMap(const QVariantMap &map) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_flushEnabled;
|
bool m_flushEnabled;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
explicit QmlProfilerStateManager(QObject *parent = nullptr);
|
explicit QmlProfilerStateManager(QObject *parent = nullptr);
|
||||||
~QmlProfilerStateManager();
|
~QmlProfilerStateManager() override;
|
||||||
|
|
||||||
QmlProfilerState currentState();
|
QmlProfilerState currentState();
|
||||||
bool clientRecording();
|
bool clientRecording();
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class QmlProfilerTextMarkModel : public QObject
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QmlProfilerTextMarkModel(QObject *parent = nullptr);
|
QmlProfilerTextMarkModel(QObject *parent = nullptr);
|
||||||
~QmlProfilerTextMarkModel();
|
~QmlProfilerTextMarkModel() override;
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
void addTextMarkId(int typeId, const QmlEventLocation &location);
|
void addTextMarkId(int typeId, const QmlEventLocation &location);
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public:
|
|||||||
ProfileFeature mainFeature() const;
|
ProfileFeature mainFeature() const;
|
||||||
|
|
||||||
virtual bool accepted(const QmlEventType &type) const;
|
virtual bool accepted(const QmlEventType &type) const;
|
||||||
bool handlesTypeId(int typeId) const;
|
bool handlesTypeId(int typeId) const override;
|
||||||
|
|
||||||
QVariantMap locationFromTypeId(int index) const;
|
QVariantMap locationFromTypeId(int index) const;
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class QMLPROFILER_EXPORT QmlProfilerTool : public QObject
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
QmlProfilerTool();
|
QmlProfilerTool();
|
||||||
~QmlProfilerTool();
|
~QmlProfilerTool() override;
|
||||||
|
|
||||||
void finalizeRunControl(QmlProfilerRunner *runWorker);
|
void finalizeRunControl(QmlProfilerRunner *runWorker);
|
||||||
|
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ public:
|
|||||||
bool isRecording() const;
|
bool isRecording() const;
|
||||||
void setRecording(bool);
|
void setRecording(bool);
|
||||||
quint64 recordedFeatures() const;
|
quint64 recordedFeatures() const;
|
||||||
virtual void messageReceived(const QByteArray &) override;
|
void messageReceived(const QByteArray &) override;
|
||||||
virtual void stateChanged(State status) override;
|
void stateChanged(State status) override;
|
||||||
|
|
||||||
void clearEvents();
|
void clearEvents();
|
||||||
void clear();
|
void clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user