aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger/qqmlinspectorservice.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-13 16:38:25 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-30 14:55:19 +0000
commit6557b7118897347ccf7c5915c169cf86c818be83 (patch)
treee7e67d77b5255222edbd620bd6ae77ec50052ee4 /src/qml/debugger/qqmlinspectorservice.cpp
parent52e782bdc56fb3a62b045f2d1ca71f38bc7ef796 (diff)
Make QQmlDebugService::registerService() private and part of ctor
By forcing all debug services to register before the thread starts we can get rid of the complicated thread synchronization and have a more natural API for the services. We can also better enforce the thread situation when registering services in QQmlDebugServer now. QQmlProfilerService should not moveToThread() in its constructor as the thread has not been started, yet. The thread affinity of QQmlProfilerService doesn't make any difference anyway, as all relevant methods are protected by mutexes and it doesn't have any slots. Change-Id: I57db9e2bf94ec6884ede694715dadf5bfd687334 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/debugger/qqmlinspectorservice.cpp')
-rw-r--r--src/qml/debugger/qqmlinspectorservice.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/debugger/qqmlinspectorservice.cpp b/src/qml/debugger/qqmlinspectorservice.cpp
index 7cd8b796ec..e3c7ad7d55 100644
--- a/src/qml/debugger/qqmlinspectorservice.cpp
+++ b/src/qml/debugger/qqmlinspectorservice.cpp
@@ -54,7 +54,6 @@ QQmlInspectorService::QQmlInspectorService()
: QQmlDebugService(QStringLiteral("QmlInspector"), 1)
, m_currentInspectorPlugin(0)
{
- registerService();
}
QQmlInspectorService *QQmlInspectorService::instance()