<div dir="ltr">On Thu, Oct 17, 2013 at 11:30 PM, John Layt <span dir="ltr"><<a href="mailto:jlayt@kde.org" target="_blank">jlayt@kde.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 17 October 2013 01:51, Aleix Pol <<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>> wrote:<br>
> Hi,<br>
> I was trying to port some application to Qt/KF5, then I realized that I<br>
> didn't know how to port KLocale::formatByteSize. I don't see anything in<br>
> QLocale for this, so I feel a bit stuck. Also I don't see any information in<br>
> KDE5Porting.html<br>
><br>
> Anybody has an idea of what's the solution?<br>
<br>
</div></div>Hi,<br>
<br>
Byte size formatting is not available in Qt, nor natively on any other<br>
platform or ICU/CLDR. It was the one thing in KLocale we needed to<br>
keep and I think Steve (?) at some stage was looking at breaking it<br>
out as a separate utility class.<br>
<br>
Someone recently submitted a patch to Qt for just this, but Thiago<br>
quickly rejected it do to several issues, mostly that there's no<br>
standard way of doing it across all platforms. There's a small chance<br>
it could get in to 5.3, but it's not a high priority for Qt right<br>
now..<br>
<br>
Cheers!<br>
<br>
John.<br>
_______________________________________________<br>
Kde-frameworks-devel mailing list<br>
<a href="mailto:Kde-frameworks-devel@kde.org">Kde-frameworks-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-frameworks-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kde-frameworks-devel</a><br>
</blockquote></div><br></div><div class="gmail_extra">Hi,</div><div class="gmail_extra">Well maybe I could help with this, but I'd need to know what do you think it would be the most appropriate solution.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Aleix</div></div>