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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user