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

List:       kde-devel
Subject:    Re: KGlobal::locale() replacement
From:       John Layt <john () layt ! net>
Date:       2013-08-28 19:08:56
Message-ID: CAM1DM6nyNXJP1atuV_+ebey-7BcB6eXdYU42Lu61EyD0CHk2Ww () mail ! gmail ! com
[Download RAW message or body]

> 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 <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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