From 6c6aeef6b52e62178fb2b66e4b539b21ca012bd6 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 24 Mar 2014 18:04:34 +0100 Subject: [PATCH] api (still not ui) to add panel spacer --- src/shell/panelconfigview.cpp | 5 +++++ src/shell/panelconfigview.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/shell/panelconfigview.cpp b/src/shell/panelconfigview.cpp index ea4343f59..d7a5d8276 100644 --- a/src/shell/panelconfigview.cpp +++ b/src/shell/panelconfigview.cpp @@ -87,6 +87,11 @@ void PanelConfigView::showAddWidgetDialog() } } +void PanelConfigView::addPanelSpacer() +{ + m_containment->createApplet("org.kde.plasma.panelspacer"); +} + void PanelConfigView::syncGeometry() { if (!m_containment || !rootObject()) { diff --git a/src/shell/panelconfigview.h b/src/shell/panelconfigview.h index 4cb82c310..642547642 100644 --- a/src/shell/panelconfigview.h +++ b/src/shell/panelconfigview.h @@ -49,6 +49,7 @@ public: public Q_SLOTS: void showAddWidgetDialog(); + void addPanelSpacer(); protected: void focusOutEvent(QFocusEvent *ev);