diff options
author | Ulf Hermann <[email protected]> | 2014-02-06 14:43:26 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-02-10 14:28:17 +0100 |
commit | 4cc230ade4df3919fbb9688b60e6e8f7f3cc8144 (patch) | |
tree | a6240d82988ec658d18be30e2ebf19bed2fc272d /src/qml/debugger/qqmldebugservice.cpp | |
parent | 77686f3b94dfd572778eb8dfa77717114e3abb93 (diff) |
Unify initial waiting of debug services
The debug services generally behave in one of two ways when initializing:
Either they block the initializing thread until some configuration is
passed over the network or they just go on. By introducing a generalized
configurable debug service the various ways of waiting on initialization
are cleaned up. The API defined for it also allows for engine-specific
initialization.
Change-Id: Id5685ef17d2a7eb1222629f7caa5ec53076d47b2
Reviewed-by: Kai Koehne <[email protected]>
Diffstat (limited to 'src/qml/debugger/qqmldebugservice.cpp')
-rw-r--r-- | src/qml/debugger/qqmldebugservice.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/debugger/qqmldebugservice.cpp b/src/qml/debugger/qqmldebugservice.cpp index f9e6643305..da62393d97 100644 --- a/src/qml/debugger/qqmldebugservice.cpp +++ b/src/qml/debugger/qqmldebugservice.cpp @@ -318,12 +318,14 @@ void QQmlDebugService::messageReceived(const QByteArray &) { } -void QQmlDebugService::engineAboutToBeAdded(QQmlEngine *) +void QQmlDebugService::engineAboutToBeAdded(QQmlEngine *engine) { + emit attachedToEngine(engine); } -void QQmlDebugService::engineAboutToBeRemoved(QQmlEngine *) +void QQmlDebugService::engineAboutToBeRemoved(QQmlEngine *engine) { + emit detachedFromEngine(engine); } void QQmlDebugService::engineAdded(QQmlEngine *) |