diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-15 15:14:40 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-10-15 08:23:29 +0000 |
commit | d56286283dc41d1e97502f48ded754c059951060 (patch) | |
tree | 42285d61fb81cc73f403d41e16a9aaf3a40bfe46 /tools/qmlprofiler/qmlprofilerclient.h | |
parent | 2f03049d4cabfac822bcf6b5886b078d70064968 (diff) |
qmlprofiler: Simplify QmlProfilerClient
We only need one class for it now.
Change-Id: Iea2715993c0ce168a3ceeecbb694f1ad3585da68
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerclient.h')
-rw-r--r-- | tools/qmlprofiler/qmlprofilerclient.h | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/tools/qmlprofiler/qmlprofilerclient.h b/tools/qmlprofiler/qmlprofilerclient.h index 72423ea676..b4bf97fdf3 100644 --- a/tools/qmlprofiler/qmlprofilerclient.h +++ b/tools/qmlprofiler/qmlprofilerclient.h @@ -38,35 +38,7 @@ #include "qmlprofilereventlocation.h" #include <QtQml/private/qqmlprofilerdefinitions_p.h> -class ProfilerClientPrivate; -class ProfilerClient : public QQmlDebugClient -{ - Q_OBJECT - - Q_PROPERTY(bool enabled READ isEnabled NOTIFY enabledChanged) -public: - ProfilerClient(const QString &clientName, - QQmlDebugConnection *client); - ~ProfilerClient(); - - bool isEnabled() const; - -public slots: - virtual void clearData(); - -signals: - void complete(); - void enabledChanged(); - void cleared(); - -protected: - virtual void stateChanged(State); - -protected: - bool m_enabled; -}; - -class QmlProfilerClient : public ProfilerClient +class QmlProfilerClient : public QQmlDebugClient { Q_OBJECT @@ -75,9 +47,9 @@ public: ~QmlProfilerClient(); void setFeatures(quint64 features); + void clearData(); public slots: - void clearData(); void sendRecordingStatus(bool record); signals: @@ -96,8 +68,11 @@ signals: const QmlEventLocation &location, int width, int height, int refCount); void memoryAllocation(QQmlProfilerDefinitions::MemoryType type, qint64 time, qint64 amount); void inputEvent(QQmlProfilerDefinitions::EventType, qint64 time); + void complete(); + void enabledChanged(bool enabled); protected: + virtual void stateChanged(State state); virtual void messageReceived(const QByteArray &); private: |