wasm: Don't add window border, title bar, etc, to child windows
Only top level windows should have window manager features, to match other platforms. Change-Id: I7a0563ef34aeb430d0b1a16633a5626482ccd17d Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> (cherry picked from commit 3c438c5d4c218ce750d2dc5f8cb14c5b4a3f7385) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
9e0850b564
commit
4c7553c30a
@ -578,7 +578,7 @@ bool QWasmWindow::hasFrame() const
|
|||||||
bool QWasmWindow::hasBorder() const
|
bool QWasmWindow::hasBorder() const
|
||||||
{
|
{
|
||||||
return hasFrame() && !m_state.testFlag(Qt::WindowFullScreen) && !m_flags.testFlag(Qt::SubWindow)
|
return hasFrame() && !m_state.testFlag(Qt::WindowFullScreen) && !m_flags.testFlag(Qt::SubWindow)
|
||||||
&& !windowIsPopupType(m_flags);
|
&& !windowIsPopupType(m_flags) && !parent();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QWasmWindow::hasTitleBar() const
|
bool QWasmWindow::hasTitleBar() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user