summaryrefslogtreecommitdiff
path: root/share/qtcreator/qml/qmlpuppet/mockfiles/ToolBarButton.qml
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2019-11-21 11:13:19 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2019-11-22 14:02:32 +0000
commit9dac42f153b42c057713aadfa48aa2873643b2f3 (patch)
tree60572b842aa11fd0a616f0c3a04c56706687209b /share/qtcreator/qml/qmlpuppet/mockfiles/ToolBarButton.qml
parentc7120bde92d1ad3402fb8a093187e6b752da244f (diff)
downloadqt-creator-9dac42f153b42c057713aadfa48aa2873643b2f3.tar.gz
QmlDesigner: Implement fit selection button in 3D edit view
Shortcuts for scale and move were also updated to correct ones. Change-Id: Iffcad0c81475553003962e65dc059879a237546e Fixes: QDS-1235 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/mockfiles/ToolBarButton.qml')
-rw-r--r--share/qtcreator/qml/qmlpuppet/mockfiles/ToolBarButton.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/ToolBarButton.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/ToolBarButton.qml
index cbc450ed2b..38a8608e47 100644
--- a/share/qtcreator/qml/qmlpuppet/mockfiles/ToolBarButton.qml
+++ b/share/qtcreator/qml/qmlpuppet/mockfiles/ToolBarButton.qml
@@ -34,6 +34,7 @@ Rectangle {
property string currentShortcut
property string tool
property variant buttonsGroup: []
+ property bool togglable: true
id: root
width: img.width + 5
@@ -71,6 +72,11 @@ Rectangle {
root.buttonsGroup[i].selected = false;
root.selected = true;
+
+ if (!root.togglable) {
+ // Deselect button after a short while (selection acts as simple click indicator)
+ _generalHelper.delayedPropertySet(root, 200, "selected", false);
+ }
}
}
}