This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Getting the "First day of the week" global setting

Tags: None
(comma "," separated)
User avatar
l3u
Registered Member
Posts
38
Karma
0
OS
Hi :-)

I need to read out the user's choice for the first day of the week, as set in systemsettings. How can I do this?
I know I can e. g. get the standard image directory by
Code: Select all
KGlobalSettings::picturesPath()
but I didn't find the first day of week setting yet.

Thanks for all help in advance!
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
system settings / locale / country, region & language / calendar

hth :)


Debian testing
User avatar
l3u
Registered Member
Posts
38
Karma
0
OS
Oh, that was a misconception. I don't need to know how to set this as a user, I want to read it out of the config from my C++/Qt/KDE code ;-)
wolfi323
Registered Member
Posts
1129
Karma
11
OS
Probably this?
Code: Select all
KGlobal::locale()->weekStartDay()


See also http://api.kde.org/4.14-api/kdelibs-api ... ocale.html
User avatar
l3u
Registered Member
Posts
38
Karma
0
OS
That's it. Thanks :-)
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
lol, sorry mate :)


Debian testing


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]