aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/qml/qmllivetextpreview.h
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2012-05-10 17:06:29 +0200
committerAurindam Jana <aurindam.jana@nokia.com>2012-05-13 18:24:27 +0200
commitb9bc68c370cb04ef9e57f04bdc779d0c997fa680 (patch)
treec14cba5762591a03145013a2d693f62ead9bcf2f /src/plugins/debugger/qml/qmllivetextpreview.h
parent38905e523ec9bbed9a314c7d7257607b3063e4b2 (diff)
QmlInspector: Fetch objects for location
Since the object tree is fetched lazily, we might have objects whose debugIds are not known. In such cases, objects can be fetched by passing the location info. Change-Id: I2001460cc14401e011efef9be9194c9f7868d617 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/plugins/debugger/qml/qmllivetextpreview.h')
-rw-r--r--src/plugins/debugger/qml/qmllivetextpreview.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/debugger/qml/qmllivetextpreview.h b/src/plugins/debugger/qml/qmllivetextpreview.h
index 0ba3a30b6f..ef4936cf0c 100644
--- a/src/plugins/debugger/qml/qmllivetextpreview.h
+++ b/src/plugins/debugger/qml/qmllivetextpreview.h
@@ -68,13 +68,16 @@ public:
signals:
void selectedItemsChanged(const QList<int> &debugIds);
+ void fetchObjectsForLocation(const QString &file,
+ int lineNumber, int columnNumber);
public slots:
void setApplyChangesToQmlInspector(bool applyChanges);
void updateDebugIds();
private slots:
- void changeSelectedElements(QList<int> offsets, const QString &wordAtCursor);
+ void changeSelectedElements(const QList<QmlJS::AST::UiObjectMember *> offsets,
+ const QString &wordAtCursor);
void documentChanged(QmlJS::Document::Ptr doc);
private:
@@ -84,6 +87,7 @@ private:
ElementChangeWarning
};
+ bool changeSelectedElements(const QList<int> offsets, const QString &wordAtCursor);
QList<int> objectReferencesForOffset(quint32 offset);
void showSyncWarning(UnsyncronizableChangeType unsyncronizableChangeType,
const QString &elementName,