[Panel-devel] Battery applet resize fix

Anne-Marie Mahfouf annemarie.mahfouf at free.fr
Sat Oct 6 01:24:00 CEST 2007


Hi,

When you restart plasma the battery applet gets bigger and bigger. Also when 
you reopen the config dialog the size is not correct.

A one-liner fixes that:

Index: battery.cpp
===================================================================
--- battery.cpp (revision 721629)
+++ battery.cpp (working copy)
@@ -103,7 +103,7 @@
             setDrawStandardBackground(m_drawBackground);
             pixelSize = m_pixelSize;
         }
-        m_theme->resize(QSize(pixelSize, pixelSize) + contentSize() - 
contentSizeHint());
+        m_theme->resize(QSize(pixelSize, pixelSize));
         updateGeometry();
         prepareGeometryChange();
         m_size = m_theme->size();

Anne-Marie



More information about the Panel-devel mailing list