aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/qml/qmllivetextpreview.h
diff options
context:
space:
mode:
authorSimjees Abraham <simjees.abraham@nokia.com>2012-05-23 15:35:52 +0200
committerAurindam Jana <aurindam.jana@nokia.com>2012-05-24 11:34:35 +0200
commit946ca0b358ef0d9f2a8c77e81158d3a65a233a56 (patch)
treef207f21263ae112902ffb720686aa4e6091b5438 /src/plugins/debugger/qml/qmllivetextpreview.h
parentbf9bc9914b6d546421a71da155b5e89ff326d9de (diff)
Debugger: Fix for Apply on Save.
The difference check/comparison to saved document by preview is done only if the file was changed in the editor. Change-Id: I086fa5f5948a15a449d25ea85921551766f7b62a Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src/plugins/debugger/qml/qmllivetextpreview.h')
-rw-r--r--src/plugins/debugger/qml/qmllivetextpreview.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/debugger/qml/qmllivetextpreview.h b/src/plugins/debugger/qml/qmllivetextpreview.h
index adebbf2fd4..7a6c052bb9 100644
--- a/src/plugins/debugger/qml/qmllivetextpreview.h
+++ b/src/plugins/debugger/qml/qmllivetextpreview.h
@@ -83,6 +83,7 @@ private slots:
void changeSelectedElements(const QList<QmlJS::AST::UiObjectMember *> offsets,
const QString &wordAtCursor);
void documentChanged(QmlJS::Document::Ptr doc);
+ void editorContentsChanged();
private:
enum UnsyncronizableChangeType {
@@ -115,6 +116,7 @@ private:
QmlJS::AST::UiObjectMember *m_nodeForOffset;
bool m_updateNodeForOffset;
bool m_changesUnsynchronizable;
+ bool m_contentsChanged;
friend class UpdateInspector;
};