diff --git a/src/shell/panelview.cpp b/src/shell/panelview.cpp index 9df5c45b2..57e649ee4 100644 --- a/src/shell/panelview.cpp +++ b/src/shell/panelview.cpp @@ -81,6 +81,8 @@ PanelView::PanelView(ShellCorona *corona, QWindow *parent) this, &PanelView::updateUnhideTrigger); //Screen management + connect(this, &QWindow::screenChanged, + this, &PanelView::screenChangedProxy); connect(this, &QWindow::screenChanged, this, &PanelView::positionPanel); connect(screen(), &QScreen::geometryChanged, diff --git a/src/shell/panelview.h b/src/shell/panelview.h index 69736430a..82dd6cd9d 100644 --- a/src/shell/panelview.h +++ b/src/shell/panelview.h @@ -39,7 +39,7 @@ class PanelView : public PlasmaQuick::View Q_PROPERTY(int maximumLength READ maximumLength WRITE setMaximumLength NOTIFY maximumLengthChanged) Q_PROPERTY(int minimumLength READ minimumLength WRITE setMinimumLength NOTIFY minimumLengthChanged) Q_PROPERTY(int distance READ distance WRITE setDistance NOTIFY distanceChanged) - Q_PROPERTY(QScreen *screen READ screen WRITE setScreen NOTIFY screenChanged) + Q_PROPERTY(QScreen *screen READ screen WRITE setScreen NOTIFY screenChangedProxy) Q_PROPERTY(VisibilityMode visibilityMode READ visibilityMode WRITE setVisibilityMode NOTIFY visibilityModeChanged) public: @@ -97,7 +97,9 @@ Q_SIGNALS: void maximumLengthChanged(); void minimumLengthChanged(); void distanceChanged(); - void screenChanged(QScreen *screen); + + //QWindow does not have a property for screen. Adding this property requires re-implementing the signal + void screenChangedProxy(QScreen *screen); void visibilityModeChanged(); protected Q_SLOTS: