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:
const QVariant &argument = QVariant());
void messageReceived(const QByteArray &);
void enabledChanged(bool);
void statusChanged(Status status);
public slots:
// void pauses();
......
......@@ -98,7 +98,7 @@ Q_SIGNALS:
void clearComponentCacheRequested();
protected:
virtual void enabledChanged(bool enabled);
virtual void statusChanged(Status status);
virtual void messageReceived(const QByteArray &);
private:
......
......@@ -511,9 +511,10 @@ void JSDebuggerAgent::continueExec()
loop.quit();
}
void JSDebuggerAgent::enabledChanged(bool on)
void JSDebuggerAgent::statusChanged(Status status)
{
engine()->setAgent(on ? this : 0);
engine()->setAgent((status == QDeclarativeDebugService::Enabled) ? this : 0);
}
} // namespace QmlJSDebugger
......@@ -60,9 +60,9 @@ QDeclarativeObserverService *QDeclarativeObserverService::instance()
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)
......
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