aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmltooling/shared/abstractviewinspector.h
diff options
context:
space:
mode:
authorSimjees Abraham <simjees.abraham@nokia.com>2012-05-11 14:37:33 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-14 13:58:03 +0200
commit7eb5f7b3e0630d59bfa7e4e185df6f34c237e584 (patch)
treef4a769907beec334e628266032ce8b7436016b00 /src/plugins/qmltooling/shared/abstractviewinspector.h
parentfd5c099eea26a8101e2cc0dc3237d1250158b895 (diff)
Inspector:Modified Apply changes on Save for unsync. changes
Changes done to reload the view if the user opts to do so after making unsynchronizable changes. Inspector informs the QmlEngine about the changes which caches it. The cache is used to load the files which were changed when reloading the view. Change-Id: I22d476cace294d6ecf4e428dac104a557c3f7dde Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/plugins/qmltooling/shared/abstractviewinspector.h')
-rw-r--r--src/plugins/qmltooling/shared/abstractviewinspector.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/qmltooling/shared/abstractviewinspector.h b/src/plugins/qmltooling/shared/abstractviewinspector.h
index d2dd9557da..8855935e46 100644
--- a/src/plugins/qmltooling/shared/abstractviewinspector.h
+++ b/src/plugins/qmltooling/shared/abstractviewinspector.h
@@ -83,6 +83,8 @@ public:
void sendCurrentObjects(const QList<QObject*> &);
+ void sendQmlFileReloaded(bool success);
+
QString idStringForObject(QObject *obj) const;
virtual void changeCurrentObjects(const QList<QObject*> &objects) = 0;
@@ -90,6 +92,7 @@ public:
virtual Qt::WindowFlags windowFlags() const = 0;
virtual void setWindowFlags(Qt::WindowFlags flags) = 0;
virtual QQmlEngine *declarativeEngine() const = 0;
+ virtual void reloadQmlFile(const QHash<QString, QByteArray> &changesHash) = 0;
void appendTool(AbstractTool *tool);
void removeTool(AbstractTool *tool);
@@ -119,6 +122,7 @@ private:
QQmlInspectorService *m_debugService;
QList<AbstractTool *> m_tools;
int m_eventId;
+ int m_reloadEventId;
};
} // namespace QmlJSDebugger