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

List:       kde-commits
Subject:    branches/KDE/4.6/kdebase/workspace/plasma/generic/applets/battery
From:       Sebastian Kügler <sebas () kde ! org>
Date:       2011-01-05 22:16:05
Message-ID: 20110105221605.8A3A2AC8B0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1212144 by sebas:

No need to go through Plasma::Applet::load()

backported from trunk, patch by Aurélien Gâteau

CCMAIL:agateau@kde.org




 M  +1 -1      battery.cpp  


--- branches/KDE/4.6/kdebase/workspace/plasma/generic/applets/battery/battery.cpp #1212143:1212144
@@ -521,7 +521,7 @@
         m_controlsLayout->addItem(m_remainingInfoLabel, row, 1);
         row++;
 
-        Battery *m_extenderApplet = static_cast<Battery*>(Plasma::Applet::load("battery"));
+        Battery *m_extenderApplet = new Battery(0, QVariantList());
         m_extenderApplet->setParent(m_controls);
         m_extenderApplet->setAcceptsHoverEvents(false);
         m_extenderApplet->setParentItem(m_controls);
[prev in list] [next in list] [prev in thread] [next in thread] 

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