summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-07-04 11:59:38 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2024-08-08 01:48:35 +0200
commit7150c79d0ee10d6aca330e6a0862b0fbfec071fc (patch)
treeefc427638c53960f25b703092144a26a2216709e /src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
parenta041cd35214e57a189aaa1f1f77199ff42303f83 (diff)
Android: Initialize window in QPlatformWindow::initialize() override
During the QAndroidPlatformWindow constructor we can't safely call virtual functions of QPlatformWindow and expect them to resolve to subclasses, e.g. QAndroidPlatformForeignWindow. Importantly, this means we can't check isForeignWindow() during construction. QPlatformWindow has a dedicated initialization function for this use-case, so use that instead. The existing order of between QAndroidPlatformForeignWindow and QAndroidPlatformWindow has been kept as is. Pick-to: 6.8 Change-Id: I2a08326fae6a3b079cd153c50a13794310ac3d74 Reviewed-by: Tinja Paavoseppä <tinja.paavoseppa@qt.io>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformopenglwindow.cpp')
0 files changed, 0 insertions, 0 deletions