wasm: Fix visual representation to not show tool tip window title bar
Change-Id: I1adf841a97daa64cd8a0ae799235d99bf961171f Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>bb10
parent
c3b5ca129a
commit
8c9fef0473
|
|
@ -404,8 +404,20 @@ void QWasmWindow::requestUpdate()
|
|||
|
||||
bool QWasmWindow::hasTitleBar() const
|
||||
{
|
||||
return !(m_windowState & Qt::WindowFullScreen) && (window()->flags().testFlag(Qt::WindowTitleHint) && m_needsCompositor)
|
||||
&& !window()->flags().testFlag(Qt::Popup);
|
||||
auto flags = window()->flags();
|
||||
return !(m_windowState & Qt::WindowFullScreen)
|
||||
&& flags.testFlag(Qt::WindowTitleHint)
|
||||
&& !flags.testFlag(Qt::Popup)
|
||||
&& !flags.testFlag(Qt::ToolTip)
|
||||
&& m_needsCompositor;
|
||||
}
|
||||
|
||||
bool QWasmWindow::windowIsPopupType(Qt::WindowType type) const
|
||||
{
|
||||
if (type == Qt::Widget)
|
||||
type = window()->type();
|
||||
if (type == Qt::Tool)
|
||||
return false;
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ protected:
|
|||
bool m_needsCompositor = false;
|
||||
friend class QWasmCompositor;
|
||||
friend class QWasmEventTranslator;
|
||||
bool windowIsPopupType(Qt::WindowType type = Qt::Widget) const;
|
||||
};
|
||||
QT_END_NAMESPACE
|
||||
#endif // QWASMWINDOW_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue