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 <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Jo Asplin <jo.asplin@nokia.com>
Reviewed-by: Holger Ihrig <holger.ihrig@nokia.com>
This commit is contained in:
Matthew Cattell 2011-09-28 13:52:59 +02:00 committed by Qt by Nokia
parent 353c12f3e6
commit ab061e3e43

View File

@ -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();
}
}
}
}
}
}
};