From 456d919326a01924f63b965a8600df2c1db0223f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 18 Feb 2014 16:59:11 +0100 Subject: [PATCH] notify signal of visibilityMode property --- src/shell/panelview.cpp | 1 + src/shell/panelview.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shell/panelview.cpp b/src/shell/panelview.cpp index dc8737c5f..903c076e3 100644 --- a/src/shell/panelview.cpp +++ b/src/shell/panelview.cpp @@ -310,6 +310,7 @@ void PanelView::setVisibilityMode(PanelView::VisibilityMode mode) updateStruts(); KWindowSystem::setOnAllDesktops(winId(), true); + emit visibilityModeChanged(); } PanelView::VisibilityMode PanelView::visibilityMode() const diff --git a/src/shell/panelview.h b/src/shell/panelview.h index 1f7550c08..9e75f9adf 100644 --- a/src/shell/panelview.h +++ b/src/shell/panelview.h @@ -38,7 +38,7 @@ class PanelView : public PlasmaQuickView Q_PROPERTY(int maximumLength READ maximumLength WRITE setMaximumLength NOTIFY maximumLengthChanged) Q_PROPERTY(int minimumLength READ minimumLength WRITE setMinimumLength NOTIFY minimumLengthChanged) Q_PROPERTY(QScreen *screen READ screen WRITE setScreen NOTIFY screenChanged) - Q_PROPERTY(VisibilityMode visibilityMode READ visibilityMode WRITE setVisibilityMode) + Q_PROPERTY(VisibilityMode visibilityMode READ visibilityMode WRITE setVisibilityMode NOTIFY visibilityModeChanged) public: @@ -91,6 +91,7 @@ Q_SIGNALS: void maximumLengthChanged(); void minimumLengthChanged(); void screenChanged(QScreen *screen); + void visibilityModeChanged(); protected Q_SLOTS: /**