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

List:       kde-devel
Subject:    KCM Locale timeFormat value
From:       Reza Shah <rshah0385 () kireihana ! com>
Date:       2011-12-24 12:07:29
Message-ID: CAPQiRUeK0NQ6P--52_7mf=JtQbUuAY8KhAef0dbP__AkyHY1Ew () mail ! gmail ! com
[Download RAW message or body]

Hi,

How do the changes  in Locale kcm propagated to KGlobal::locale() for
datetime related?

I put kDebug to display KGlobal::locale()->timeFormat(), but the value
displayed was the old one.
It will display the new one until i restart plasma-desktop.

In order to always get new value i have to do like below:
KSharedConfigPtr m_userConfig = KSharedConfig::openConfig(
"kcmlocale-user", KConfig::IncludeGlobals );
KConfigGroup m_userSettings = KConfigGroup( m_userConfig, "Locale" );
kDebug() << "TIME FORMAT" << m_userSettings.readEntry( "TimeFormat",
QString() );

instead of KGlobal::locale()->timeFormat().

Is this normal behavior or confirmed bug?

Thanks,
Reza

>> 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