diff options
author | Paul Olav Tvete <paul.tvete@qt.io> | 2017-09-26 18:08:25 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2017-09-28 12:09:27 +0000 |
commit | ff2e9a17e7583fe18b9ac3527e4aab2a6b395174 (patch) | |
tree | 6b07c0a1137a1df69e3cf601eede30b9eb329b60 /src/testlib/qtestblacklist.cpp | |
parent | e96c56c740768143878d9e0f0acc5aa01dd52bd4 (diff) |
Fix crash when reparenting window container
QWindowContainer assumed that a widget could never change from
native to non-native. This is not a fact when the window container
is reparented to toplevel and back. In this case, usesNativeWidgets
would be stuck at true, and parentWasChanged() would go down the
native widget path, triggering an assert.
The solution is to always recalculate the usesNativeWidgets bool.
Task-number: QTBUG-63168
Change-Id: I88178259878ace9eb5de2ee45ff5e69b170da71c
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Błażej Szczygieł <spaz16@wp.pl>
Diffstat (limited to 'src/testlib/qtestblacklist.cpp')
0 files changed, 0 insertions, 0 deletions