forked from qt-creator/qt-creator
QmlObserver: Disable "Observer" mode when no debugging client is attached
This commit is contained in:
@@ -75,6 +75,8 @@ public Q_SLOTS:
|
||||
void contextPathUpdated(const QStringList &contextPath);
|
||||
|
||||
Q_SIGNALS:
|
||||
void debuggingClientChanged(bool hasDebuggingClient);
|
||||
|
||||
void currentObjectsChanged(const QList<QObject*> &objects);
|
||||
void designModeBehaviorChanged(bool inDesignMode);
|
||||
void reloadRequested();
|
||||
@@ -96,6 +98,7 @@ Q_SIGNALS:
|
||||
void clearComponentCacheRequested();
|
||||
|
||||
protected:
|
||||
virtual void enabledChanged(bool enabled);
|
||||
virtual void messageReceived(const QByteArray &);
|
||||
|
||||
private:
|
||||
|
||||
@@ -58,6 +58,11 @@ QDeclarativeDesignDebugServer *QDeclarativeDesignDebugServer::instance()
|
||||
return qmlDesignDebugServer();
|
||||
}
|
||||
|
||||
void QDeclarativeDesignDebugServer::enabledChanged(bool enabled)
|
||||
{
|
||||
emit debuggingClientChanged(enabled);
|
||||
}
|
||||
|
||||
void QDeclarativeDesignDebugServer::messageReceived(const QByteArray &message)
|
||||
{
|
||||
QDataStream ds(message);
|
||||
|
||||
Reference in New Issue
Block a user