aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-11-29 10:28:33 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2016-11-30 12:37:40 +0000
commit838fd79152957f457a47cd30970961a27f086848 (patch)
tree5024d2ec2375e2eac05c534aed00dc0bb992e345 /src/imports
parent6aa97038e26bab96455b2fc3febc5d358a5e7599 (diff)
SwipeDelegate: fix animations when releasing from a drag5.7
9812a9c changed the order in which the pressed and position state is set. Before, when releasing after swiping, it would be: set pressed to false => set position After 9812a9c, it became: set position => set pressed to false The original order is necessary to ensure that animations can rely on being enabled *before* position changes, as their enabled expression typically looks something like this: enabled: !control.down This patch duplicates the contents of QQuickAbstractButton::mouseUngrabEvent() for now, with a TODO comment to ensure that it's moved into a private helper that we can call later on. Task-number: QTBUG-57350 Change-Id: I31af7a665fb2d0e37548df31560ed7bbb0c3cadb Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/imports')
0 files changed, 0 insertions, 0 deletions