diff options
author | Richard Moe Gustavsen <richard.gustavsen@digia.com> | 2013-12-02 22:32:13 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-04 09:11:43 +0100 |
commit | bd9cf0b7b96ea5836d18259b073870f8b145b46d (patch) | |
tree | 7291a3b2d46c155eb2a3b8c4d26ec613c8f23ea5 /tests | |
parent | 32f71db1bdcf93c8a03a9ef11ff4044479afa369 (diff) |
iOS: fix crash when focusWindow changes while keyboard is open
It turns out we cannot rely on QGuiApplication::focusWindow() to
be non-zero at all times (e.g when pop-ups are closing etc).
So instead use m_focusView.qwindow which points to a
valid QWindow. This window is the same as QGuiApplication::focusWindow
most of the time, except when a focus window closes.
For those cases we get a new call to scrollRootView immediately
after with m_focusView updated to reflect the new focusWindow.
Task-number: QTBUG-35339
Change-Id: Icb3a8d3140af1f1904495a9289c8c26ab79e70f6
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions