qtquick: Fix resizing root view

And uncommented the qtquick test for this, which now passes.
Moved the test to its own qtquick tests file.
This commit is contained in:
Sergio Martins
2022-05-31 14:06:36 +01:00
parent 0a1023aa83
commit 6289e92e54
10 changed files with 130 additions and 40 deletions

View File

@@ -23,6 +23,7 @@ using namespace KDDockWidgets;
Window_qt::Window_qt(QWindow *window)
: m_window(window)
{
Q_ASSERT(window);
m_connection = QObject::connect(window, &QWindow::screenChanged, [this] {
screenChanged.emit();
});
@@ -50,6 +51,7 @@ QRect Window_qt::geometry() const
void Window_qt::setProperty(const char *name, const QVariant &value)
{
Q_ASSERT(m_window);
m_window->setProperty(name, value);
}
@@ -151,3 +153,8 @@ void Window_qt::startSystemMove()
{
m_window->startSystemMove();
}
void KDDockWidgets::Window_qt::setGeometry(QRect geo) const
{
m_window->setGeometry(geo);
}

View File

@@ -26,6 +26,7 @@ public:
~Window_qt() override;
void setWindowState(Qt::WindowState) override;
QRect geometry() const override;
void setGeometry(QRect) const override;
bool isVisible() const override;
WId handle() const override;