summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-03-25 05:28:40 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-03-30 02:57:39 (GMT)
commitb94176e69efc3948696c6774d5a228fc753b5b29 (patch)
tree9be1cca7cb851a5266bf8949e8b0de5e62128b33 /src/gui/graphicsview
parent84413a25bc025f099a075387fb6ab8449d9ef217 (diff)
downloadQt-b94176e69efc3948696c6774d5a228fc753b5b29.zip
Qt-b94176e69efc3948696c6774d5a228fc753b5b29.tar.gz
Qt-b94176e69efc3948696c6774d5a228fc753b5b29.tar.bz2
Fix width of TextInput micro focus rectangle.
Remove the padding QLineControl::cursorRect() adds for region updates. QGraphicsView also grew the rectangle by returning the bounding rect of the transformed rectangle which is fixed by using the same transform for QRect as is used for QRectF. Change-Id: I8d8df9dbc6b4250e4e5392871191123a76b304a0 Task-number: QTBUG-18343 Reviewed-by: Martin Jones
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 2b129d7..16268a8 100644
--- a/src/gui/graphicsview/qgraphicsview.cpp
+++ b/src/gui/graphicsview/qgraphicsview.cpp
@@ -2498,7 +2498,7 @@ QVariant QGraphicsView::inputMethodQuery(Qt::InputMethodQuery query) const
else if (value.type() == QVariant::PointF)
value = mapFromScene(value.toPointF());
else if (value.type() == QVariant::Rect)
- value = mapFromScene(value.toRect()).boundingRect();
+ value = d->mapRectFromScene(value.toRect()).toRect();
else if (value.type() == QVariant::Point)
value = mapFromScene(value.toPoint());
return value;