summaryrefslogtreecommitdiff
path: root/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.h
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2019-10-17 13:51:57 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2019-10-21 05:52:13 +0000
commit640044c8f8d7c290558c63c636be7821f9a8a223 (patch)
tree5ec8d9dba9e5324cc42268c1b4a76a7c6c9dda5b /share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.h
parente7b481bdee9759a3dc5efc3d55400394654fc592 (diff)
downloadqt-creator-640044c8f8d7c290558c63c636be7821f9a8a223.tar.gz
QmlDesigner: Implement command for synchronising the selection
This patch implements the command and dispatchers for synchronising the selection between Qt Creator and the qml2puppet. Qt5InformationNodeInstanceServer::changeSelection() is called whenever the selection is changed in Qt Creator. Qt5InformationNodeInstanceServer::changeSelection() allows to change the selection from the qml2puppet. Change-Id: I73a64d8dc2a3f330433f966b42a10229cbbff649 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.h')
-rw-r--r--share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.h b/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.h
index 0fddbde5c0..b452c802be 100644
--- a/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.h
+++ b/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.h
@@ -49,6 +49,7 @@ class CompleteComponentCommand;
class ChangeNodeSourceCommand;
class TokenCommand;
class RemoveSharedMemoryCommand;
+class ChangeSelectionCommand;
class NodeInstanceServerInterface : public QObject
{
@@ -77,6 +78,7 @@ public:
virtual void changeNodeSource(const ChangeNodeSourceCommand &command) = 0;
virtual void token(const TokenCommand &command) = 0;
virtual void removeSharedMemory(const RemoveSharedMemoryCommand &command) = 0;
+ virtual void changeSelection(const ChangeSelectionCommand &command) = 0;
virtual void benchmark(const QString &)
{}