summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlinecontrol.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-04-20 05:14:19 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-04-20 05:14:19 (GMT)
commit2801cc86b442e3a1256e48ffdf6dd92ffeb74a17 (patch)
tree9a3cf49f36f8120425ae2933a66eac17873a95d6 /src/gui/widgets/qlinecontrol.cpp
parentddb4f7dfb6ca8d9c730ea2a610f53e03b76c9dde (diff)
downloadQt-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/widgets/qlinecontrol.cpp')
-rw-r--r--src/gui/widgets/qlinecontrol.cpp2
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()));