aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-05-15 07:46:19 -0400
committerKen Moore <ken@ixsystems.com>2018-05-15 07:46:19 -0400
commit09c67100e98d8a73f3d480217250b220d731ebd0 (patch)
tree2a73f3f1f0cc39b44eb9f3c5ab091823772c0dd9 /src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.cpp
parentQuick update for LuminaOS-FreeBSD. (diff)
downloadlumina-09c67100e98d8a73f3d480217250b220d731ebd0.tar.gz
lumina-09c67100e98d8a73f3d480217250b220d731ebd0.tar.bz2
lumina-09c67100e98d8a73f3d480217250b220d731ebd0.zip
Get the plugin system working with the panels.
Also add a spacer plugin.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.cpp')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.cpp b/src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.cpp
index 5b2a8a08..52642235 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.cpp
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-widgets/Panel.cpp
@@ -11,6 +11,7 @@ Panel::Panel(PanelObject *pobj) : QWidget(0, Qt::Window | Qt::FramelessWindowHin
this->setObjectName("LuminaPanelBackgroundWidget");
obj = pobj;
layout = new QBoxLayout(QBoxLayout::LeftToRight, this);
+ layout->setContentsMargins(0,0,0,0);
this->setBackgroundRole(QPalette::AlternateBase);
connect(obj, SIGNAL(backgroundChanged()), this, SLOT(updateBackground()) );
connect(obj, SIGNAL(geomChanged()), this, SLOT(updateGeom()) );
@@ -75,6 +76,7 @@ void Panel::updatePlugins(){
layout->removeWidget(plug); //remove from the layout for a moment
}
layout->insertWidget(i, plug);
+ plug->setupSizing();
}
//Now remove any plugins which were deleted from config
for(int i=0; i<lastplugins.length(); i++){
bgstack15