summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextcontrol.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-03-09 10:46:04 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-03-09 10:46:04 (GMT)
commitde4954fd676c3bbf15abb9bedad4d09adc1c31b4 (patch)
treeb2ce67c3a485ff5201785f32df6a6105bf25f745 /src/gui/text/qtextcontrol.cpp
parentfc954a91625d172ef2dff4b5f9ea615551cb09bf (diff)
parentdc6b5702e0c488bf51ca029290eb65604bfb1dd5 (diff)
downloadQt-de4954fd676c3bbf15abb9bedad4d09adc1c31b4.zip
Qt-de4954fd676c3bbf15abb9bedad4d09adc1c31b4.tar.gz
Qt-de4954fd676c3bbf15abb9bedad4d09adc1c31b4.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt into 4.7
Conflicts: doc/src/declarative/dynamicobjects.qdoc doc/src/declarative/elements.qdoc
Diffstat (limited to 'src/gui/text/qtextcontrol.cpp')
-rw-r--r--src/gui/text/qtextcontrol.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/text/qtextcontrol.cpp b/src/gui/text/qtextcontrol.cpp
index b25588d..f5da079 100644
--- a/src/gui/text/qtextcontrol.cpp
+++ b/src/gui/text/qtextcontrol.cpp
@@ -284,7 +284,7 @@ bool QTextControlPrivate::cursorMoveKeyEvent(QKeyEvent *e)
if (cursor.position() != oldCursorPos)
emit q->cursorPositionChanged();
emit q->microFocusChanged();
- } else if (ignoreNavigationEvents && isNavigationEvent) {
+ } else if (ignoreNavigationEvents && isNavigationEvent && oldSelection.anchor() == cursor.anchor()) {
return false;
}
@@ -1649,8 +1649,10 @@ void QTextControlPrivate::mouseMoveEvent(QEvent *e, Qt::MouseButton button, cons
emit q->cursorPositionChanged();
_q_updateCurrentCharFormatAndSelection();
#ifndef QT_NO_IM
- if (QInputContext *ic = inputContext()) {
- ic->update();
+ if (contextWidget) {
+ if (QInputContext *ic = inputContext()) {
+ ic->update();
+ }
}
#endif //QT_NO_IM
} else {