forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user