diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-04-20 05:14:19 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-04-20 05:14:19 (GMT) |
commit | 2801cc86b442e3a1256e48ffdf6dd92ffeb74a17 (patch) | |
tree | 9a3cf49f36f8120425ae2933a66eac17873a95d6 /src/gui | |
parent | ddb4f7dfb6ca8d9c730ea2a610f53e03b76c9dde (diff) | |
download | Qt-2801cc86b442e3a1256e48ffdf6dd92ffeb74a17.zip Qt-2801cc86b442e3a1256e48ffdf6dd92ffeb74a17.tar.gz Qt-2801cc86b442e3a1256e48ffdf6dd92ffeb74a17.tar.bz2 |
Pass double clicks like other mouse events.
Task-number: QTBUG-9940
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/qlinecontrol.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qlinecontrol.cpp b/src/gui/widgets/qlinecontrol.cpp index 42df800..d027b91 100644 --- a/src/gui/widgets/qlinecontrol.cpp +++ b/src/gui/widgets/qlinecontrol.cpp @@ -1350,6 +1350,7 @@ bool QLineControl::processEvent(QEvent* ev) #endif switch(ev->type()){ #ifndef QT_NO_GRAPHICSVIEW + case QEvent::GraphicsSceneMouseDoubleClick: case QEvent::GraphicsSceneMouseMove: case QEvent::GraphicsSceneMouseRelease: case QEvent::GraphicsSceneMousePress:{ @@ -1439,6 +1440,7 @@ void QLineControl::processMouseEvent(QMouseEvent* ev) moveCursor(cursor, mark); break; } + case QEvent::GraphicsSceneMouseDoubleClick: case QEvent::MouseButtonDblClick: if (ev->button() == Qt::LeftButton) { selectWordAtPos(xToPos(ev->pos().x())); |