[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: [Panel-devel] Battery applet resize fix
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2007-10-05 23:18:24
Message-ID: 200710051718.24523.aseigo () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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
[Attachment #5 (application/pgp-signature)]
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic