Renamed View::windowHandle() to View::window()

windowHandle() is missnamed in Qt because QWidget::window() was already
taken in Qt4. But we can make it better here.
This commit is contained in:
Sergio Martins
2022-05-01 23:09:18 +01:00
parent 0d02be6387
commit 3fabf34bee
29 changed files with 98 additions and 98 deletions

View File

@@ -138,7 +138,7 @@ void ViewWrapper_qtwidgets::setGeometry(QRect rect)
m_widget->setGeometry(rect);
}
std::shared_ptr<Window> ViewWrapper_qtwidgets::windowHandle() const
std::shared_ptr<Window> ViewWrapper_qtwidgets::window() const
{
if (QWindow *w = m_widget->window()->windowHandle())
return std::shared_ptr<Window>(new Window_qtwidgets(w));