summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2013-05-02 10:12:30 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-07 14:31:02 +0200
commit0d308c4111f7cd322ed4a07e04b83c20e923e06a (patch)
tree41f140350af19cde426e98147a8d077e574d2e51 /dist
parent3c46b829f9103300f7ffe6f44e7ba287efec7777 (diff)
QApplication: fix touch to mouse bug when setting buttons()
QApplicationPrivate::translateTouchToMouse always sets buttons() to Qt::LeftButton for synthesised events. This is wrong for a mouse release, since 'button' should in that case be Qt::LeftButton, and 'buttons' should be Qt::NoButton (since no buttons are actually being pressed). This caused problems for QGraphicsView, which refuses to release any mouse grab set on a QGraphicsItem if at least one button is being pressed (which was always true). This resulted in broken drag behavior on touch platforms. Change-Id: Iefe63cd753f9f8bb04278fd04a4d728e3deda25e Reviewed-by: Samuel Rødal <samuel.rodal@digia.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions