diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-12-11 13:07:24 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-01-04 10:47:45 +0100 |
commit | c30d05e794e49d69cbc981ae2ff21e5713c5a81f (patch) | |
tree | 9e01eb5d50b58ad1a86e0c458b652d539796996e /src/plugins/sqldrivers | |
parent | 74559dccc84ed0f0f7d8f57165fe387c3e112485 (diff) |
macOS: Simplify and fix issues with QMenuPrivate::moveWidgetToPlatformItem
View embedding when QWidget is involved is a bit finicky. This change
breaks down the steps needed to embed it into an NSMenu item, and
simplifies the process by not relying on a container widget.
The main issue is that QCocoaWindow::recreateWindowIfNeeded() will
potentially create an NSWindow for the embedded view, resulting in
a stray view. To prevent this we set the Qt::SubWindow flag on the
window, but QWidget tends to reset this flag when the widget doesn't
have a parent, so we need to be careful about which order we do the
setup.
Pick-to: 6.0 5.15
Change-Id: I505f7c0a2d8e4350511fdb01a5e9b9c623a40a41
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers')
0 files changed, 0 insertions, 0 deletions