QmlJsInspector: implemented Property Inspector

Reviewed-by: Kai Koehne
This commit is contained in:
Christiaan Janssen
2011-01-18 17:17:17 +01:00
parent 6a829f5a8f
commit f5039a4a02
14 changed files with 399 additions and 431 deletions

View File

@@ -70,6 +70,10 @@ public:
QDeclarativeDebugExpressionQuery *queryExpressionResult(int objectDebugId, const QString &expr, QObject *parent=0);
void clearComponentCache();
bool addObjectWatch(int objectDebugId);
bool removeObjectWatch(int objectDebugId);
void removeAllObjectWatches();
// returns the object references
QList<QDeclarativeDebugObjectReference> objectReferences() const;
QDeclarativeDebugObjectReference objectReferenceForId(int debugId) const;
@@ -108,6 +112,7 @@ signals:
void serverReloaded();
void selectedColorChanged(const QColor &color);
void contextPathUpdated(const QStringList &contextPath);
void propertyChanged(int debugId, const QByteArray &propertyName, const QVariant &propertyValue);
public slots:
void refreshObjectTree();
@@ -139,6 +144,7 @@ private slots:
void objectTreeFetched(QDeclarativeDebugQuery::State state = QDeclarativeDebugQuery::Completed);
void fetchContextObjectRecursive(const QmlJsDebugClient::QDeclarativeDebugContextReference& context);
void newObjects();
void objectWatchTriggered(const QByteArray &propertyName, const QVariant &propertyValue);
private:
void updateConnected();
@@ -164,6 +170,8 @@ private:
QTimer m_requestObjectsTimer;
DebugIdHash m_debugIdHash;
QHash<int, QDeclarativeDebugWatch *> m_objectWatches;
bool m_isConnected;
};