aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>2011-01-12 13:13:40 +0200
committerPekka Vuorela <pekka.ta.vuorela@nokia.com>2011-01-12 13:13:40 +0200
commit1738c8c8f34f6aaad7866860c7495fbac9a87d91 (patch)
treec3884b4106159774a742194caf235343bad17768
parentde0520254bce3e257a503ef59f6df6dd6bb341b2 (diff)
Changes: fix build on qt <= 4.7.1
RevBy: TrustMe Details: the internal method had different signature earlier, so allowing the focus issues there rather than compilation failure.
-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