ohos: refuse sub window maximize requests in the view
QOhosWindowProxy::maximize() rejects sub windows with a warning, so
showMaximized() and showFullScreen() on a sub window never reach the
system, and a request made before the first show() is dropped without
any message, because the view has no window proxy yet.
Refuse these requests in the view instead, where the platform window
state can be corrected, and keep the warning. If the Qt window state
is already maximized or full screen when a sub window is shown, make
the request after showWindow(), since the system ignores it on a sub
window that is not shown yet. For now every sub window request is
refused, a later change allows them on API 26.
On a phone, full screen keeps using the phone window chrome without
refusal, and a full screen state set before show() now reaches it too.
Task-number: QTBUG-151677
Change-Id: I740cf020878bf97235a9198a624eadaad742c1b5
Reviewed-by: SanthoshKumar Selvaraj <santhosh.kumar.selvaraj@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>