windowflags: Report QWindow compound window states

Pick-to: 6.4
Change-Id: I44b923df6851d0f51ac39bcbb4a569cb2fde775d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tor Arne Vestbø 2022-09-19 19:18:46 +02:00
parent 55a7385296
commit 6fc751aedf

View File

@ -208,7 +208,7 @@ static Qt::WindowStates windowState(const QObject *o)
return states; return states;
} }
if (o->isWindowType()) if (o->isWindowType())
return static_cast<const QWindow *>(o)->windowState(); return static_cast<const QWindow *>(o)->windowStates();
return Qt::WindowNoState; return Qt::WindowNoState;
} }