summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-03-10 14:21:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-10 21:36:47 +0100
commit1b15111c90b4bc366d8c6ae27e4fe46d9e52c074 (patch)
tree850a054bc98b5c402d54868bceec3102cc9ea357 /src
parentf1f77c2eb30c2e924c28b783741a0c9a714a2940 (diff)
Popupmenu: update item under mouse upon press
We need to update item under mouse when doing a mouse press since you don't have a guarantee that there will be a mouse move before you eventually get a mouse release. This will be the case on iOS (and probably other touch platforms). Change-Id: Ia7220e9a822248ee7dc73b5530b04e858a0be47b Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/controls/Private/ColumnMenuContent.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/Private/ColumnMenuContent.qml b/src/controls/Private/ColumnMenuContent.qml
index e9bc42fcc..41d5bbb0e 100644
--- a/src/controls/Private/ColumnMenuContent.qml
+++ b/src/controls/Private/ColumnMenuContent.qml
@@ -171,6 +171,7 @@ Item {
acceptedButtons: Qt.AllButtons
onPositionChanged: updateCurrentItem({ "x": mouse.x, "y": mouse.y })
+ onPressed: updateCurrentItem({ "x": mouse.x, "y": mouse.y })
onReleased: content.triggered(currentItem)
onExited: {
if (currentItem && !currentItem.__menuItem.__popupVisible) {