aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h')
-rw-r--r--lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h b/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h
index 0e6cda2f..4ba74133 100644
--- a/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h
+++ b/lumina-desktop/desktop-plugins/quickcontainer/QuickDPlugin.h
@@ -27,11 +27,15 @@ public:
this->layout()->addWidget(container);
container->setSource(QUrl::fromLocalFile( LUtils::findQuickPluginFile(ID.section("---",0,0)) ));
QApplication::processEvents(); //to check for errors right away
- this->setInitialSize(container->initialSize().width(), container->initialSize().height());
+ //this->setInitialSize(container->initialSize().width(), container->initialSize().height());
}
~QuickDPlugin(){}
+ virtual QSize defaultPluginSize(){
+ // The returned QSize is in grid points (typically 100 or 200 pixels square)
+ return QSize(2,2);
+ }
private:
QQuickWidget *container;
bgstack15