> El Dimecres, 28 d'agost de 2013, a les 19:34:04, Reza Shah va escriure:
>> Hi
>>
>> What would be the proper replacement for KGlobal::locale() in KF5:
>> - KLocale::global() or
>> - QLocale::system()

Neither :-) Just use QLocale() which will return the default locale
for the application, which will usually be the system locale unless
the app has changed it to a different locale.  To guarantee using the
system locale then use QLocale::system().  However using QLocale
requires that you change all KLocale calls to the QLocale equivalent,
which includes changing date/time format codes, and may not all be
there yet, which is why KLocale is being kept in KDE4Support.

John.

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to