Review Request: The KSystemActivityDialog uses MB as default unit.

Aaron J. Seigo aseigo at kde.org
Tue Nov 30 23:27:11 CET 2010


On Tuesday, November 30, 2010, Sebastian Kügler wrote:
> If you're trying to do this manually, you're opening a can of worms. The
> problem has also already been solved in KLocale.

indeed it has: KLocale::formatNumber(..), as in:

QString formatted = KGlobal::locale()->formatNumber(number, precision);

i love the kde libraries :) 

-- 
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 Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20101130/e814363b/attachment.sig 


More information about the Plasma-devel mailing list