aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/corelib/widgets/mtextedit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/widgets/mtextedit.cpp b/src/corelib/widgets/mtextedit.cpp
index 4cfe7e28..6e288d90 100755
--- a/src/corelib/widgets/mtextedit.cpp
+++ b/src/corelib/widgets/mtextedit.cpp
@@ -1815,8 +1815,10 @@ void MTextEdit::focusOutEvent(QFocusEvent *event)
d->commitPreedit();
deselect();
+#if QT_VERSION >= 0x040702 // 4.7.1 was missing stopItem parameter
// kludge warning!
QGraphicsItem::d_ptr->clearSubFocus();
+#endif
if (d->completer) {
//hide completer when focus out