diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-01-09 14:50:12 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-01-11 14:04:13 +0000 |
commit | e1ad7a1784501f034de48e26796100eeb5240429 (patch) | |
tree | 131e3d6ad61e6902312029b9aebfd4a1cc465571 /src/plugins/qmlprofiler/qmlprofilertool.h | |
parent | 7d039de7a8da94c59ada808ecc7fd8f86cea3437 (diff) | |
download | qt-creator-e1ad7a1784501f034de48e26796100eeb5240429.tar.gz |
QmlProfiler: Drop static accessors from QmlProfilerTool
It wasn't really a singleton even before. For testing purposes make the
client/state/model managers accessible.
Change-Id: Ie5efbc47a6b9119495f999e4e05877d4789da407
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertool.h')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertool.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.h b/src/plugins/qmlprofiler/qmlprofilertool.h index 0c21087400..3211e1a8bf 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.h +++ b/src/plugins/qmlprofiler/qmlprofilertool.h @@ -40,10 +40,12 @@ class RunControl; namespace QmlProfiler { -class QmlProfilerRunner; +class QmlProfilerModelManager; +class QmlProfilerStateManager; namespace Internal { +class QmlProfilerRunner; class QmlProfilerClientManager; class QMLPROFILER_EXPORT QmlProfilerTool : public QObject @@ -54,8 +56,6 @@ public: explicit QmlProfilerTool(QObject *parent); ~QmlProfilerTool(); - static QmlProfilerTool *instance(); - void finalizeRunControl(QmlProfilerRunner *runWorker); bool prepareTool(); @@ -68,7 +68,9 @@ public: static void logError(const QString &msg); static void showNonmodalWarning(const QString &warningMsg); - static QmlProfilerClientManager *clientManager(); + QmlProfilerClientManager *clientManager(); + QmlProfilerModelManager *modelManager(); + QmlProfilerStateManager *stateManager(); void profilerStateChanged(); void serverRecordingChanged(); |