diff options
| author | Vladimir Belyavsky <belyavskyv@gmail.com> | 2024-10-30 15:44:28 +0300 |
|---|---|---|
| committer | Vladimir Belyavsky <belyavskyv@gmail.com> | 2024-10-31 07:17:37 +0000 |
| commit | 00f58f2eca6bfcc66dcc79c249e51d2d34eb6a11 (patch) | |
| tree | 7a9a33b7ed66911daba767d036d808a871678fbc /src/qmlcompiler/qqmljscompiler.cpp | |
| parent | 116ec82af038185dec1e769d68ceccd382dbb5d5 (diff) | |
QQuickScreenInfo: make sure we handle the wrapped screen changes
QQuickScreenInfo is created every time we access the Window's `screen`
property. See QQuickWindowQmlImpl::screen(). However, it didn't handle
any changes to the screen passed to the constructor. Therefore, any
bindings to the internal properties of the Window's screen didn't work
correctly either.
Fix this by calling setWrappedScreen() directly from the constructor
to ensure that we handle all changes to the wrapped platform's screen.
Fixes: QTBUG-130689
Pick-to: 6.8 6.5
Change-Id: I92337169c12c2c294ee00af45f3885f53b5e6588
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompiler.cpp')
0 files changed, 0 insertions, 0 deletions
