aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickwidgets/qquickwidget.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-09-02 08:17:20 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2020-09-08 09:23:07 +0000
commit362f6999a52849482e73915ca37ed4b6cc9ff9aa (patch)
treea284281a027e4bf7c4b8afdd253df60375b6545d /src/quickwidgets/qquickwidget.h
parentdf40607e8afeca83dff634f1ab8cc3d335f9feb9 (diff)
Propagate focusObjectChanged signal (second attempt)
When the focus object is updated from inside the Qt Quick scene, the signal needs to be propagated from the offscreen window to the widget's window, otherwise the input methods will not react to it. Also, we need to propagate the FocusAboutToChange event, otherwise the contents of the editor will not be committed when the focus object changes, and the input method can get into an invalid state. Fixes: QTBUG-61475 Change-Id: I44ba171c0e78ef8b2e0127cba8991f1f1cf13571 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quickwidgets/qquickwidget.h')
-rw-r--r--src/quickwidgets/qquickwidget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quickwidgets/qquickwidget.h b/src/quickwidgets/qquickwidget.h
index 1ceb7449b3..fb7e5c5760 100644
--- a/src/quickwidgets/qquickwidget.h
+++ b/src/quickwidgets/qquickwidget.h
@@ -112,6 +112,7 @@ private Q_SLOTS:
void createFramebufferObject();
void destroyFramebufferObject();
void triggerUpdate();
+ void propagateFocusObjectChanged(QObject *focusObject);
protected:
void resizeEvent(QResizeEvent *) override;