diff options
author | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2010-12-30 16:42:26 +0200 |
---|---|---|
committer | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2011-01-04 14:21:01 +0200 |
commit | 20a2dce9ed8d3d7eafd1275aba83f66ea48294d9 (patch) | |
tree | a6d2c99e6348895b1cf264cd7bcedbbb8accb976 | |
parent | 7755f5393d78a41778fa37ee52484bd02159e1b6 (diff) |
Fixes: NB#213228, Up/down arrow problems in MTextEdit
RevBy: Jarno Malmari
-rwxr-xr-x | src/corelib/widgets/mtextedit.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/corelib/widgets/mtextedit.cpp b/src/corelib/widgets/mtextedit.cpp index 99701092..91687349 100755 --- a/src/corelib/widgets/mtextedit.cpp +++ b/src/corelib/widgets/mtextedit.cpp @@ -162,19 +162,16 @@ private: QGraphicsItem *nextItem = 0; int distance = INT_MAX; - const QPoint center = focusItem->mapToScene(focusItem->pos() + - focusItem->boundingRect().center()) - .toPoint(); + const QPoint center = focusItem->mapToScene(focusItem->boundingRect().center()).toPoint(); - foreach(QGraphicsItem *item, focusItem->scene()->items()) { + foreach (QGraphicsItem *item, focusItem->scene()->items()) { // TODO: Make it work for other focusable items, not just those who accept IM: if (item != focusItem && item->flags().testFlag(QGraphicsItem::ItemAcceptsInputMethod) && isChildOfSceneWindow(dynamic_cast<QGraphicsWidget *>(item), sm)) { bool found = false; - const QPoint targetCenter = item->mapToScene(item->pos() + - item->boundingRect().center()) + const QPoint targetCenter = item->mapToScene(item->boundingRect().center()) .toPoint(); switch(key) { |