diff options
author | Gatis Paeglis <gatis.paeglis@digia.com> | 2013-05-13 16:23:58 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-15 05:06:15 +0200 |
commit | 252cba3cd506ce2118ae65a3fc9eb1efe8f23a4f (patch) | |
tree | 3500238bff3586d962b795a03fde1d91c59cc2b2 /src/widgets/graphicsview/qgraphicsproxywidget.cpp | |
parent | e7e360f046e03455210320319d9e89838328cc3c (diff) |
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>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsproxywidget.cpp')
-rw-r--r-- | src/widgets/graphicsview/qgraphicsproxywidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsproxywidget.cpp b/src/widgets/graphicsview/qgraphicsproxywidget.cpp index f84201cedf..1898ecba68 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<QInputMethodEvent *>(event)); - break; + if (event->isAccepted()) + return true; + return false; } case QEvent::ShortcutOverride: { QWidget *focusWidget = d->widget->focusWidget(); |