summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2009-12-02 15:52:51 (GMT)
committerRobert Griebl <rgriebl@trolltech.com>2009-12-03 10:31:38 (GMT)
commit68f4b46426e715540864046128617250a521d38a (patch)
tree4e81a4617f7ba3a97fc5a8d8efbd4bbc9dae467f /src/gui/graphicsview
parent635a9da9c42834c0c9c3b2329db4aae408ce820a (diff)
downloadQt-68f4b46426e715540864046128617250a521d38a.zip
Qt-68f4b46426e715540864046128617250a521d38a.tar.gz
Qt-68f4b46426e715540864046128617250a521d38a.tar.bz2
Fix for virtual keyboard poping up when it should not.
Pressing and releasing the finger/stylus on an editable text widget should only trigger the input method if the release position is still within the widget's boundaries. Reviewed-by: axis
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index bb45e7e..bc47872 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -9713,7 +9713,7 @@ void QGraphicsTextItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
}
QWidget *widget = event->widget();
- if (widget) {
+ if (widget && (dd->control->textInteractionFlags() & Qt::TextEditable) && boundingRect().contains(event->pos())) {
qt_widget_private(widget)->handleSoftwareInputPanel(event->button(), dd->clickCausedFocus);
}
dd->clickCausedFocus = 0;