QGraphicsProxyWidget: Don't unnecessarily check focusWidget twice
Amends commit bf5011815d917e07ae7cf45e5768f1775f70e90d Change-Id: I18a8d26b08b4035d7a76fc51873696590292b181 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
02f1e72d5a
commit
ada9c2f8f8
@ -1401,7 +1401,7 @@ void QGraphicsProxyWidget::focusOutEvent(QFocusEvent *event)
|
|||||||
if (QWidget *focusWidget = d->widget->focusWidget()) {
|
if (QWidget *focusWidget = d->widget->focusWidget()) {
|
||||||
// QTBUG-88016 proxyWidget set QTextEdit(QLineEdit etc.) when input preview text,
|
// QTBUG-88016 proxyWidget set QTextEdit(QLineEdit etc.) when input preview text,
|
||||||
// inputMethod should be reset when proxyWidget lost focus
|
// inputMethod should be reset when proxyWidget lost focus
|
||||||
if (focusWidget && focusWidget->testAttribute(Qt::WA_InputMethodEnabled))
|
if (focusWidget->testAttribute(Qt::WA_InputMethodEnabled))
|
||||||
QApplication::inputMethod()->reset();
|
QApplication::inputMethod()->reset();
|
||||||
|
|
||||||
d->removeSubFocusHelper(focusWidget, event->reason());
|
d->removeSubFocusHelper(focusWidget, event->reason());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user