From 513f5a0230f5039ba5407562a7539a22cb20802a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 10 Nov 2017 17:28:09 +0200 Subject: preferences: support a pre-defined list of time formats Add a combo-box that holds a list of pre-defined time formats in the Language preferences. The user is still allowed to enter a custom time format. Signed-off-by: Lubomir I. Ivanov --- desktop-widgets/preferences/prefs_language.ui | 41 ++++++++++++++++----------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'desktop-widgets/preferences/prefs_language.ui') diff --git a/desktop-widgets/preferences/prefs_language.ui b/desktop-widgets/preferences/prefs_language.ui index 470e8b6d1..b51dd083f 100644 --- a/desktop-widgets/preferences/prefs_language.ui +++ b/desktop-widgets/preferences/prefs_language.ui @@ -140,10 +140,19 @@ - + + + + 0 + 0 + + <html><head/><body><p>Preferred time format</p><p>Commonly used format specifiers are</p><p>h (hours in 12h format)</p><p>H (hours in 24h format)</p><p>mm (2 digit minutes)</p><p>ss (2 digit seconds)</p><p>t/tt (a/p or am/pm)</p></body></html> + + true + @@ -212,50 +221,50 @@ - timeFormatSystemDefault + dateFormatSystemDefault toggled(bool) - timeFormatEntry + shortDateFormatEntry setDisabled(bool) - 79 - 210 + 99 + 132 - 264 - 210 + 293 + 169 dateFormatSystemDefault toggled(bool) - shortDateFormatEntry + dateFormatEntry setDisabled(bool) - 99 - 132 + 89 + 103 - 293 - 169 + 273 + 103 - dateFormatSystemDefault + timeFormatSystemDefault toggled(bool) - dateFormatEntry + timeFormatEntry setDisabled(bool) 89 - 103 + 190 273 - 103 + 190 -- cgit v1.2.3-70-g09d2