diff options
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index 2d629176f3..ce099e0de9 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(); + } + } + } + } + } } }; |