Don't send the same Input event twice to QGraphicsProxyWidget::inputMethodEvent

Task-number: QTBUG-30705
Change-Id: I6fa02807255d0abf74aa38e94662bbe3d9e642bb
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
Gatis Paeglis 2013-05-13 16:23:58 +02:00 committed by The Qt Project
parent e7e360f046
commit 252cba3cd5

View File

@ -825,7 +825,9 @@ bool QGraphicsProxyWidget::event(QEvent *event)
}
case QEvent::InputMethod: {
inputMethodEvent(static_cast<QInputMethodEvent *>(event));
break;
if (event->isAccepted())
return true;
return false;
}
case QEvent::ShortcutOverride: {
QWidget *focusWidget = d->widget->focusWidget();