diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-11-01 02:32:17 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-11-01 02:58:20 (GMT) |
commit | b438b15b8291ce9591fbe0a64fe452383662bbda (patch) | |
tree | 82b61cf42f06443ef716d1458c94ea2954951a90 /src/declarative/graphicsitems | |
parent | 95e00f7d712ee51389948a018b27c0d1dde4fa99 (diff) | |
download | Qt-b438b15b8291ce9591fbe0a64fe452383662bbda.zip Qt-b438b15b8291ce9591fbe0a64fe452383662bbda.tar.gz Qt-b438b15b8291ce9591fbe0a64fe452383662bbda.tar.bz2 |
Quickly clicking an item that doesn't use double clicking should result in two separate clicks
Task-number: QTBUG-14832
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativemousearea.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea.cpp b/src/declarative/graphicsitems/qdeclarativemousearea.cpp index 1b7dce0..d9edd11 100644 --- a/src/declarative/graphicsitems/qdeclarativemousearea.cpp +++ b/src/declarative/graphicsitems/qdeclarativemousearea.cpp @@ -566,7 +566,8 @@ void QDeclarativeMouseArea::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *even if (!d->absorb) { QDeclarativeItem::mouseDoubleClickEvent(event); } else { - d->doubleClick = true; + if (d->isDoubleClickConnected()) + d->doubleClick = true; d->saveEvent(event); QDeclarativeMouseEvent me(d->lastPos.x(), d->lastPos.y(), d->lastButton, d->lastButtons, d->lastModifiers, true, false); me.setAccepted(d->isDoubleClickConnected()); |