aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-06-12 08:33:51 -0400
committerKen Moore <ken@pcbsd.org>2015-06-12 08:33:51 -0400
commit7b489310d13b2c825b1f0df31f945f3b3299767d (patch)
tree8501afa59ee50c31898f1d67ee37ec2a221ee9b6 /lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h
parentOops, fix a typo where the accent color was still being used for the highligh... (diff)
downloadlumina-7b489310d13b2c825b1f0df31f945f3b3299767d.tar.gz
lumina-7b489310d13b2c825b1f0df31f945f3b3299767d.tar.bz2
lumina-7b489310d13b2c825b1f0df31f945f3b3299767d.zip
Add a QtQuick sample plugin and disable the new panel container for QtQuick pluins. It appears that there is a fundamental issue with embedding QML objects into a panel/window with the "always on top" flag set - it never finishes painting the QML object and prevents the rest of the panel from being updated as well.
Diffstat (limited to 'lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h')
-rw-r--r--lumina-desktop/panel-plugins/quickcontainer/QuickPPlugin.h3
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)) ));
bgstack15