diff --git a/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h b/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h index 330107bb38f..39b559cabe3 100644 --- a/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h +++ b/share/qtcreator/qmljsdebugger/include/jsdebuggeragent.h @@ -103,7 +103,7 @@ public: const QVariant &argument = QVariant()); void messageReceived(const QByteArray &); - void statusChanged(Status); + void enabledChanged(bool); public slots: // void pauses(); diff --git a/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp b/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp index 6338afd94ef..24c61eead00 100644 --- a/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp +++ b/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp @@ -511,10 +511,10 @@ void JSDebuggerAgent::continueExec() loop.quit(); } -void JSDebuggerAgent::statusChanged(Status status) +void JSDebuggerAgent::enabledChanged(bool on) { - engine()->setAgent(status == Enabled ? this : 0); - QDeclarativeDebugService::statusChanged(status); + engine()->setAgent(on ? this : 0); + QDeclarativeDebugService::enabledChanged(on); } } // namespace QmlJSDebugger