QmlJS Live Preview: Implemented "Apply changes from Qml File" button

The button is checkable and pressing it will stop/propagate changes to
the qml application being debugged.
This commit is contained in:
Lasse Holmstedt
2010-07-26 11:59:59 +02:00
parent 70f2243bde
commit c7a8d93765
7 changed files with 65 additions and 23 deletions

View File

@@ -75,11 +75,14 @@ public:
signals:
void selectedItemsChanged(const QList<QDeclarativeDebugObjectReference> &objects);
public slots:
void setApplyChangesToQmlObserver(bool applyChanges);
void updateDebugIds(const QDeclarativeDebugObjectReference &rootReference);
private slots:
void changeSelectedElements(QList<int> offsets, const QString &wordAtCursor);
void documentChanged(QmlJS::Document::Ptr doc);
public slots:
void updateDebugIds(const QDeclarativeDebugObjectReference &rootReference);
private:
QList<int> objectReferencesForOffset(quint32 offset) const;
@@ -95,6 +98,9 @@ private:
QList<QWeakPointer<QmlJSEditor::Internal::QmlJSTextEditor> > m_editors;
bool m_applyChangesToQmlObserver;
QmlJS::Document::Ptr m_docWithUnappliedChanges;
};
} // namespace Internal