diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-06-01 16:37:05 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-06-01 15:04:45 +0000 |
commit | 9851f6cada7228aea14e356e0353f896973fd1bb (patch) | |
tree | 739aab328871272ad3048ce1b24044ba4f514a03 /src/Authoring/Studio/Palettes/controls | |
parent | b13294bc39a1759e55e057e0e73f998bf1347450 (diff) |
Fix other mouse buttons from interfering with drag-adjust of floats
Install an event filter that blocks all mouse button events for other
buttons than the left button for the duration of the drag. Key events
and shortcut overrides are also blocked.
Task-number: QT3DS-565
Change-Id: Idbc03eae5e4e4e0718ebdd43066f58275bd5f44f
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/controls')
-rw-r--r-- | src/Authoring/Studio/Palettes/controls/FloatTextField.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/controls/FloatTextField.qml b/src/Authoring/Studio/Palettes/controls/FloatTextField.qml index c920cbdb..03e0cf48 100644 --- a/src/Authoring/Studio/Palettes/controls/FloatTextField.qml +++ b/src/Authoring/Studio/Palettes/controls/FloatTextField.qml @@ -103,6 +103,7 @@ TextField { property int pressedX: 0 property bool draggingActive: false + acceptedButtons: Qt.LeftButton preventStealing: true anchors.fill: parent onPressed: { |