diff options
author | Robert Griebl <rgriebl@trolltech.com> | 2009-12-02 15:52:51 (GMT) |
---|---|---|
committer | Robert Griebl <rgriebl@trolltech.com> | 2009-12-03 10:31:38 (GMT) |
commit | 68f4b46426e715540864046128617250a521d38a (patch) | |
tree | 4e81a4617f7ba3a97fc5a8d8efbd4bbc9dae467f /src/gui/graphicsview | |
parent | 635a9da9c42834c0c9c3b2329db4aae408ce820a (diff) | |
download | Qt-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.cpp | 2 |
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; |