From 252cba3cd506ce2118ae65a3fc9eb1efe8f23a4f Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Mon, 13 May 2013 16:23:58 +0200 Subject: [PATCH] Don't send the same Input event twice to QGraphicsProxyWidget::inputMethodEvent Task-number: QTBUG-30705 Change-Id: I6fa02807255d0abf74aa38e94662bbe3d9e642bb Reviewed-by: Gunnar Sletta --- src/widgets/graphicsview/qgraphicsproxywidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/graphicsview/qgraphicsproxywidget.cpp b/src/widgets/graphicsview/qgraphicsproxywidget.cpp index f84201cedf1..1898ecba68d 100644 --- a/src/widgets/graphicsview/qgraphicsproxywidget.cpp +++ b/src/widgets/graphicsview/qgraphicsproxywidget.cpp @@ -825,7 +825,9 @@ bool QGraphicsProxyWidget::event(QEvent *event) } case QEvent::InputMethod: { inputMethodEvent(static_cast(event)); - break; + if (event->isAccepted()) + return true; + return false; } case QEvent::ShortcutOverride: { QWidget *focusWidget = d->widget->focusWidget();