[Panel-devel] Battery applet resize fix
Aaron J. Seigo
aseigo at kde.org
Sat Oct 6 01:18:24 CEST 2007
On Friday 05 October 2007, Anne-Marie Mahfouf wrote:
> 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();
hm. i wonder why the contentSize() - contentSizeHint() thing was there? oh
well, it looks good; nice catch =)) pls commit at your leisure
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071005/73b842d8/attachment.pgp
More information about the Panel-devel
mailing list