Commit f343cc4b authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlJSDebugger: Update API to changes in QDeclarativeEngine

Reviewed-by: Christiaan Janssen
parent 141ca588
...@@ -103,7 +103,7 @@ public: ...@@ -103,7 +103,7 @@ public:
const QVariant &argument = QVariant()); const QVariant &argument = QVariant());
void messageReceived(const QByteArray &); void messageReceived(const QByteArray &);
void enabledChanged(bool); void statusChanged(Status status);
public slots: public slots:
// void pauses(); // void pauses();
......
...@@ -98,7 +98,7 @@ Q_SIGNALS: ...@@ -98,7 +98,7 @@ Q_SIGNALS:
void clearComponentCacheRequested(); void clearComponentCacheRequested();
protected: protected:
virtual void enabledChanged(bool enabled); virtual void statusChanged(Status status);
virtual void messageReceived(const QByteArray &); virtual void messageReceived(const QByteArray &);
private: private:
......
...@@ -511,9 +511,10 @@ void JSDebuggerAgent::continueExec() ...@@ -511,9 +511,10 @@ void JSDebuggerAgent::continueExec()
loop.quit(); loop.quit();
} }
void JSDebuggerAgent::enabledChanged(bool on) void JSDebuggerAgent::statusChanged(Status status)
{ {
engine()->setAgent(on ? this : 0); engine()->setAgent(on ? this : 0);
engine()->setAgent((status == QDeclarativeDebugService::Enabled) ? this : 0);
} }
} // namespace QmlJSDebugger } // namespace QmlJSDebugger
...@@ -60,9 +60,9 @@ QDeclarativeObserverService *QDeclarativeObserverService::instance() ...@@ -60,9 +60,9 @@ QDeclarativeObserverService *QDeclarativeObserverService::instance()
return serviceInstance(); return serviceInstance();
} }
void QDeclarativeObserverService::enabledChanged(bool enabled) void QDeclarativeObserverService::statusChanged(Status status)
{ {
emit debuggingClientChanged(enabled); emit debuggingClientChanged((status == Enabled));
} }
void QDeclarativeObserverService::messageReceived(const QByteArray &message) void QDeclarativeObserverService::messageReceived(const QByteArray &message)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment