api (still not ui) to add panel spacer

This commit is contained in:
Marco Martin 2014-03-24 18:04:34 +01:00
parent b5dc457570
commit 6c6aeef6b5
2 changed files with 6 additions and 0 deletions

View File

@ -87,6 +87,11 @@ void PanelConfigView::showAddWidgetDialog()
}
}
void PanelConfigView::addPanelSpacer()
{
m_containment->createApplet("org.kde.plasma.panelspacer");
}
void PanelConfigView::syncGeometry()
{
if (!m_containment || !rootObject()) {

View File

@ -49,6 +49,7 @@ public:
public Q_SLOTS:
void showAddWidgetDialog();
void addPanelSpacer();
protected:
void focusOutEvent(QFocusEvent *ev);