summaryrefslogtreecommitdiff
path: root/src/tools
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 /src/tools
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 'src/tools')
-rw-r--r--src/tools/qml2puppet/CMakeLists.txt1
-rw-r--r--src/tools/qml2puppet/qml2puppet.qbs2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/qml2puppet/CMakeLists.txt b/src/tools/qml2puppet/CMakeLists.txt
index 3715ae9349..3db1cb34cd 100644
--- a/src/tools/qml2puppet/CMakeLists.txt
+++ b/src/tools/qml2puppet/CMakeLists.txt
@@ -44,6 +44,7 @@ extend_qtc_executable(qml2puppet
statepreviewimagechangedcommand.cpp statepreviewimagechangedcommand.h
synchronizecommand.cpp synchronizecommand.h
tokencommand.cpp tokencommand.h
+ changeselectioncommand.cpp changeselectioncommand.h
valueschangedcommand.cpp
)
diff --git a/src/tools/qml2puppet/qml2puppet.qbs b/src/tools/qml2puppet/qml2puppet.qbs
index 02a6f6e31f..bc67e79a1a 100644
--- a/src/tools/qml2puppet/qml2puppet.qbs
+++ b/src/tools/qml2puppet/qml2puppet.qbs
@@ -93,6 +93,8 @@ QtcTool {
"commands/tokencommand.h",
"commands/valueschangedcommand.cpp",
"commands/valueschangedcommand.h",
+ "commands/changeselectioncommand.cpp",
+ "commands/changeselectioncommand.h",
"container/addimportcontainer.cpp",
"container/addimportcontainer.h",
"container/idcontainer.cpp",