[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasmate] plasmoidviewer: Fix initialization of the plasmoid viewer with a specific size
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2013-01-02 17:24:17
Message-ID: 20130102172417.E4179A6091 () git ! kde ! org
[Download RAW message or body]

Git commit fc790b6d331aee7a0b982680a71b02104c7d6007 by Aleix Pol.
Committed on 02/01/2013 at 17:35.
Pushed by apol into branch 'master'.

Fix initialization of the plasmoid viewer with a specific size

Make the plasmoid adapt to it when the size is set

REVIEW: 108084

M  +3    -1    plasmoidviewer/fullview.cpp

http://commits.kde.org/plasmate/fc790b6d331aee7a0b982680a71b02104c7d6007

diff --git a/plasmoidviewer/fullview.cpp b/plasmoidviewer/fullview.cpp
index 8785f00..109af6c 100644
--- a/plasmoidviewer/fullview.cpp
+++ b/plasmoidviewer/fullview.cpp
@@ -182,7 +182,9 @@ void FullView::addApplet(const QString &name, const QString &containment,
     if (cliArgs->isSet("size")) {
         const QStringList dimensions = cliArgs->getOption("size").split("x");
         if (dimensions.size() == 2) {
-            resize(dimensions.at(0).toInt(), dimensions.at(1).toInt());
+            QSize s(dimensions.at(0).toInt(), dimensions.at(1).toInt());
+            m_applet->resize(s);
+            resize(s);
         }
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic