forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user