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:
committed by
Sergio Martins
parent
1b05cf350d
commit
e72bc1434a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user