From: Matthew Cattell Date: Wed, 28 Sep 2011 11:52:59 +0000 (+0200) Subject: reimplemented doUpdateMicroFocus to work without calling the base implementation X-Git-Tag: qt-v5.0.0-alpha1~3411 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab061e3e436fab35eac8666f3e950e98f66c4d3e;p=profile%2Fivi%2Fqtbase.git reimplemented doUpdateMicroFocus to work without calling the base implementation Change-Id: Ic96ab2bb93248e6d3ba1c8b789ed3c21f8ad39bd Reviewed-on: http://codereview.qt-project.org/5716 Reviewed-by: Qt Sanity Bot Reviewed-by: Samuel Rødal Reviewed-by: Jo Asplin Reviewed-by: Holger Ihrig --- diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index 2d62917..ce099e0 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -10393,7 +10393,17 @@ public: void doUpdateMicroFocus() { - updateMicroFocus(); + if (QWidget *fw = QApplication::focusWidget()) { + if (scene()) { + for (int i = 0 ; i < scene()->views().count() ; ++i) { + if (scene()->views().at(i) == fw) { + if (QInputContext *inputContext = fw->inputContext()) { + inputContext->update(); + } + } + } + } + } } };