notify signal of visibilityMode property

This commit is contained in:
Marco Martin 2014-02-18 16:59:11 +01:00
parent fa8ed3668b
commit 456d919326
2 changed files with 3 additions and 1 deletions

View File

@ -310,6 +310,7 @@ void PanelView::setVisibilityMode(PanelView::VisibilityMode mode)
updateStruts();
KWindowSystem::setOnAllDesktops(winId(), true);
emit visibilityModeChanged();
}
PanelView::VisibilityMode PanelView::visibilityMode() const

View File

@ -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:
/**