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

List:       kde-commits
Subject:    [kalarm] src/lib: Use default locale, not system one
From:       David Jarvie <djarvie () kde ! org>
Date:       2016-09-17 22:37:17
Message-ID: E1blOEX-00061r-2g () code ! kde ! org
[Download RAW message or body]

Git commit 98842f8b2010d5b36a3d70c25d2c260e095842f8 by David Jarvie.
Committed on 17/09/2016 at 22:22.
Pushed by djarvie into branch 'master'.

Use default locale, not system one

M  +1    -1    src/lib/timeedit.cpp

http://commits.kde.org/kalarm/98842f8b2010d5b36a3d70c25d2c260e095842f8

diff --git a/src/lib/timeedit.cpp b/src/lib/timeedit.cpp
index f2b129b..152f3f0 100644
--- a/src/lib/timeedit.cpp
+++ b/src/lib/timeedit.cpp
@@ -224,7 +224,7 @@ namespace
 
 bool use12HourClock()
 {
-    const QString fmt = QLocale::system().timeFormat();
+    const QString fmt = QLocale().timeFormat();
     // 'A' or 'a' = show am/pm; 'H' displays 24-hour format regardless.
     return fmt.contains(QLatin1Char('a'), Qt::CaseInsensitive) && !fmt.contains(QLatin1Char('H'));
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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