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