summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-12-13 10:29:22 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-12-13 14:16:52 (GMT)
commit0af1f5508e165f3b494ab236cb1cdf1b0edcffa5 (patch)
treeade12cabfc854cf57c005bd6229b576d7da6dee0 /src/gui/graphicsview
parent6160f8541e4d7cb66de7680b5fb439fb757c59dd (diff)
downloadQt-0af1f5508e165f3b494ab236cb1cdf1b0edcffa5.zip
Qt-0af1f5508e165f3b494ab236cb1cdf1b0edcffa5.tar.gz
Qt-0af1f5508e165f3b494ab236cb1cdf1b0edcffa5.tar.bz2
Fixes text jitter in QtQuick components when using the virtual keyboard
QGraphicsView::mapFromScene() returns a QRect instead of a QRectF. Thus, we were prematurely rounding the micro focus rectangle coordinates in QGraphicsView::inputMethodQuery(). (The Qt::ImMicroFocus query returns a QRectF from QGraphicsScene, which is the result of querying QDeclarativeTextEdit and mapping it to the scene.) Auto-test included. Reviewed-by: leo Reviewed-by: bnilsen Task-number: QTCOMPONENTS-288 Task-number: QTBUG-16063
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp
index a566c8e..2acea8a 100644
--- a/src/gui/graphicsview/qgraphicsview.cpp
+++ b/src/gui/graphicsview/qgraphicsview.cpp
@@ -2494,7 +2494,7 @@ QVariant QGraphicsView::inputMethodQuery(Qt::InputMethodQuery query) const
QVariant value = d->scene->inputMethodQuery(query);
if (value.type() == QVariant::RectF)
- value = mapFromScene(value.toRectF()).boundingRect();
+ value = d->mapRectFromScene(value.toRectF());
else if (value.type() == QVariant::PointF)
value = mapFromScene(value.toPointF());
else if (value.type() == QVariant::Rect)