[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim/Applications/16.08] kalarm/src/lib: Use default locale, not system one
From: David Jarvie <djarvie () kde ! org>
Date: 2016-09-17 22:27:47
Message-ID: E1blO5L-0000qh-GY () code ! kde ! org
[Download RAW message or body]
Git commit 86597aadc9a8fb0d883b5513ae1f269e31d1962b by David Jarvie.
Committed on 17/09/2016 at 22:23.
Pushed by djarvie into branch 'Applications/16.08'.
Use default locale, not system one
M +1 -1 kalarm/src/lib/timeedit.cpp
http://commits.kde.org/kdepim/86597aadc9a8fb0d883b5513ae1f269e31d1962b
diff --git a/kalarm/src/lib/timeedit.cpp b/kalarm/src/lib/timeedit.cpp
index f2b129b..152f3f0 100644
--- a/kalarm/src/lib/timeedit.cpp
+++ b/kalarm/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