From 414b22f26b824577f2fd87af2f7c6fb08bdae613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petri=20Damst=C3=A9n?= Date: Sat, 20 Jun 2009 15:58:59 +0000 Subject: [PATCH] Do X-Plasma-DefaultSize resize in AppletPrivate::init svn path=/trunk/KDE/kdelibs/; revision=984355 --- applet.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/applet.cpp b/applet.cpp index c12c8c83b..facca8b94 100644 --- a/applet.cpp +++ b/applet.cpp @@ -2278,6 +2278,14 @@ void AppletPrivate::init(const QString &packagePath) } } + //set a default size before any saved settings are read + QSize size = appletDescription.property("X-Plasma-DefaultSize").toSize(); + if (size.isEmpty()) { + size = QSize(200, 200); + } + //kDebug() << "size" << size; + q->resize(size); + q->setBackgroundHints(Applet::DefaultBackground); q->setHasConfigurationInterface(true); //FIXME why not default it to true in the constructor? @@ -2318,15 +2326,6 @@ void AppletPrivate::setupScriptSupport() if (!package->filePath("mainconfigui").isEmpty()) { q->setHasConfigurationInterface(true); } - - //set a default size before any saved settings are read - QSize size = appletDescription.property("X-Plasma-DefaultSize").toSize(); - if (size.isEmpty()) { - size = QSize(200,200); - } - - //kDebug() << "size" << size; - q->resize(size); } QString AppletPrivate::globalName() const