Normalize how we set top level window geometry

Prefer Window API, since for QtQuick the root view isn't so tighly
coupled with the QWindow as in QWidgets world. Hide the difference in
Window_qtwidgets.cpp, which now prefers the QWidget API whenever possible,
as that's better tested than using QWindow direclty.
This commit is contained in:
Sergio Martins
2022-06-06 11:17:42 +01:00
parent 581451c342
commit 9c881ec53e
7 changed files with 36 additions and 4 deletions

View File

@@ -154,7 +154,12 @@ void Window_qt::startSystemMove()
m_window->startSystemMove();
}
void KDDockWidgets::Window_qt::setGeometry(QRect geo) const
void Window_qt::setGeometry(QRect geo) const
{
m_window->setGeometry(geo);
}
void Window_qt::setVisible(bool is)
{
m_window->setVisible(is);
}