Fix Qt6 deprecation warning about QWidget::isTopLevel()

The method `bool QWidget::isTopLevel() const` has been deprecated since
Qt 6.1. The replacement is the `QWidget::isWindow()` method.

Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
This commit is contained in:
Olaf Mandel
2023-01-11 17:29:36 +01:00
committed by Sergio Martins
parent 1b05cf350d
commit e72bc1434a

View File

@@ -169,7 +169,7 @@ std::shared_ptr<Window> ViewWrapper_qtwidgets::window() const
bool ViewWrapper_qtwidgets::isRootView() const
{
return m_widget->isTopLevel();
return m_widget->isWindow();
}
void ViewWrapper_qtwidgets::setVisible(bool is)