diff --git a/modules/gui/qt/maininterface/compositor_dummy.cpp b/modules/gui/qt/maininterface/compositor_dummy.cpp index b967bb7d8adc60778bd2f455108f9fc0e1d40f82..842eaa53397bce26c8773f070899db6847f82581 100644 --- a/modules/gui/qt/maininterface/compositor_dummy.cpp +++ b/modules/gui/qt/maininterface/compositor_dummy.cpp @@ -60,7 +60,7 @@ bool CompositorDummy::makeMainInterface(MainCtx* mainCtx) if (m_qmlWidget->status() != QQuickView::Ready) return false; - m_qmlWidget->show(); + m_qmlWidget->setVisible(true); return true; } diff --git a/modules/gui/qt/maininterface/compositor_platform.cpp b/modules/gui/qt/maininterface/compositor_platform.cpp index 751b60a2c159ca3ddc9104ecc9dec36602dabd8f..70ce148f9afe3e7e9facade5018bdb74a2aef930 100644 --- a/modules/gui/qt/maininterface/compositor_platform.cpp +++ b/modules/gui/qt/maininterface/compositor_platform.cpp @@ -97,9 +97,9 @@ bool CompositorPlatform::makeMainInterface(MainCtx *mainCtx) m_rootWindow->installEventFilter(this); - m_rootWindow->show(); - m_videoWindow->show(); - m_quickWindow->show(); + m_rootWindow->setVisible(true); + m_videoWindow->setVisible(true); + m_quickWindow->setVisible(true); m_quickWindow->raise(); // Make sure quick window is above the video window. diff --git a/modules/gui/qt/maininterface/compositor_wayland.cpp b/modules/gui/qt/maininterface/compositor_wayland.cpp index 00fdf57af0e18eea87819f86e79e1e2ba19acbe1..138c9f7f91138a3a731e725069659c38833e7cc5 100644 --- a/modules/gui/qt/maininterface/compositor_wayland.cpp +++ b/modules/gui/qt/maininterface/compositor_wayland.cpp @@ -140,7 +140,7 @@ bool CompositorWayland::makeMainInterface(MainCtx* mainCtx) const bool ret = commonGUICreate(m_qmlView.get(), m_qmlView.get(), flags); if (ret) - m_qmlView->show(); + m_qmlView->setVisible(true); return ret; } diff --git a/modules/gui/qt/maininterface/compositor_win7.cpp b/modules/gui/qt/maininterface/compositor_win7.cpp index 9b83edd6d12f8be1d985aab061d5680c9f3b3d09..ab7141dd53dc902dd59f2622b126070a5c2a419f 100644 --- a/modules/gui/qt/maininterface/compositor_win7.cpp +++ b/modules/gui/qt/maininterface/compositor_win7.cpp @@ -84,7 +84,7 @@ bool CompositorWin7::makeMainInterface(MainCtx* mainCtx) m_stable->setAttribute( Qt::WA_ShowWithoutActivating ); m_stable->setVisible(true); - m_videoWidget->show(); + m_videoWidget->setVisible(true); m_videoWindowHWND = (HWND)m_videoWidget->winId(); BOOL excluseFromPeek = TRUE; @@ -106,7 +106,7 @@ bool CompositorWin7::makeMainInterface(MainCtx* mainCtx) const bool ret = commonGUICreate(m_qmlView.get(), m_qmlView.get(), CompositorVideo::CAN_SHOW_PIP); if (ret) - m_qmlView->show(); + m_qmlView->setVisible(true); return ret; } @@ -178,7 +178,7 @@ bool CompositorWin7::eventFilter(QObject*, QEvent* ev) m_videoWidget->hide(); else { - m_videoWidget->show(); + m_videoWidget->setVisible(true); m_videoWidget->setGeometry(m_qmlView->geometry()); resetVideoZOrder(); } @@ -188,7 +188,7 @@ bool CompositorWin7::eventFilter(QObject*, QEvent* ev) resetVideoZOrder(); break; case QEvent::Show: - m_videoWidget->show(); + m_videoWidget->setVisible(true); resetVideoZOrder(); break; case QEvent::Hide: diff --git a/modules/gui/qt/maininterface/compositor_x11.cpp b/modules/gui/qt/maininterface/compositor_x11.cpp index 78380e0273a6bd8853130c9d0ab94e0c1a1c85cc..2e49f2f7f212aed0692e8c4e9a8e6f90615cdce6 100644 --- a/modules/gui/qt/maininterface/compositor_x11.cpp +++ b/modules/gui/qt/maininterface/compositor_x11.cpp @@ -194,7 +194,7 @@ bool CompositorX11::makeMainInterface(MainCtx* mainCtx) xcb_change_window_attributes(connection, m_videoWidget->winId(), mask, &values); setTransparentForMouseEvent(connection, m_videoWidget->winId()); - m_videoWidget->show(); + m_videoWidget->setVisible(true); connect(m_mainCtx, &MainCtx::hasAcrylicSurfaceChanged, m_renderWindow.get(), &CompositorX11RenderWindow::setAcrylic); @@ -209,7 +209,7 @@ bool CompositorX11::makeMainInterface(MainCtx* mainCtx) if (!commonGUICreate(m_renderWindow.get(), m_qmlView.get(), flags)) return false; - m_qmlView->show(); + m_qmlView->setVisible(true); if (m_mainCtx->hasAcrylicSurface()) m_renderWindow->m_hasAcrylic = true; diff --git a/modules/gui/qt/maininterface/compositor_x11_renderwindow.cpp b/modules/gui/qt/maininterface/compositor_x11_renderwindow.cpp index c09b4b902c5608f02d0325116478de8d1ea8a19c..b2d816827357a974c61bc07d8961937a7b49f2f8 100644 --- a/modules/gui/qt/maininterface/compositor_x11_renderwindow.cpp +++ b/modules/gui/qt/maininterface/compositor_x11_renderwindow.cpp @@ -352,7 +352,7 @@ CompositorX11RenderWindow::CompositorX11RenderWindow(qt_intf_t* p_intf, xcb_conn setFlag(Qt::FramelessWindowHint); winId(); - show(); + setVisible(true); m_wid = winId(); } diff --git a/modules/gui/qt/maininterface/interface_window_handler.cpp b/modules/gui/qt/maininterface/interface_window_handler.cpp index bb5452ad2836ae8fe22529fa9d4bc215b2092a9b..2bff6b079ce2ef0dd1b63f3056042425cdaa6d64 100644 --- a/modules/gui/qt/maininterface/interface_window_handler.cpp +++ b/modules/gui/qt/maininterface/interface_window_handler.cpp @@ -148,7 +148,7 @@ void InterfaceWindowHandler::updateCSDWindowSettings() { m_window->hide(); // some window managers don't like to change frame window hint on visible window m_window->setFlag(Qt::FramelessWindowHint, m_mainCtx->useClientSideDecoration()); - m_window->show(); + m_window->setVisible(true); } bool InterfaceWindowHandler::eventFilter(QObject*, QEvent* event) @@ -350,7 +350,7 @@ void InterfaceWindowHandler::setInterfaceHiden() void InterfaceWindowHandler::setInterfaceShown() { - m_window->show(); + m_window->setVisible(true); } void InterfaceWindowHandler::setInterfaceMinimized() diff --git a/modules/gui/qt/maininterface/mainctx.cpp b/modules/gui/qt/maininterface/mainctx.cpp index 9caf5070a35d919f4c24804127346cb7a8b95e95..3284620e1561db134abe3e54419822d0a11b97ed 100644 --- a/modules/gui/qt/maininterface/mainctx.cpp +++ b/modules/gui/qt/maininterface/mainctx.cpp @@ -1110,7 +1110,7 @@ bool WindowStateHolder::holdOnTop(QWindow *window, Source source, bool hold) { window->setFlags( newflags ); - window->show(); /* necessary to apply window flags */ + window->setVisible(true); /* necessary to apply window flags */ //workaround: removing onTop state might drop fullscreen state window->setWindowStates(oldStates); }