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

List:       kde-panel-devel
Subject:    Re: Review Request: The KSystemActivityDialog uses MB as default unit.
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2010-11-30 22:27:11
Message-ID: 201011301427.12354.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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