diff options
Diffstat (limited to 'lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h')
-rw-r--r-- | lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h b/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h index 7c887803..e160c2b3 100644 --- a/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h +++ b/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h @@ -20,9 +20,8 @@ class QuickPPlugin : public LPPlugin{ Q_OBJECT public: QuickPPlugin(QWidget* parent, QString ID, bool horizontal) : LPPlugin(parent, ID){ - this->setLayout( new QVBoxLayout()); - this->layout()->setContentsMargins(0,0,0,0); container = new QQuickWidget(this); + container->setResizeMode(QQuickWidget::SizeRootObjectToView); this->layout()->addWidget(container); horizontal = true; //just to silence compiler warning container->setSource(QUrl::fromLocalFile( LUtils::findQuickPluginFile(ID.section("---",0,0)) )); |