diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-10 17:28:09 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-10 09:21:47 -0800 |
commit | 513f5a0230f5039ba5407562a7539a22cb20802a (patch) | |
tree | 9eea6b9290f8a9df0b4caf2d5f86047debbef4fa /desktop-widgets/preferences/prefs_language.ui | |
parent | 4fde26fb2c8478176bdd77be19e091695b744ae8 (diff) | |
download | subsurface-513f5a0230f5039ba5407562a7539a22cb20802a.tar.gz |
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 <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/preferences/prefs_language.ui')
-rw-r--r-- | desktop-widgets/preferences/prefs_language.ui | 41 |
1 files changed, 25 insertions, 16 deletions
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 @@ </widget> </item> <item> - <widget class="QLineEdit" name="timeFormatEntry"> + <widget class="QComboBox" name="timeFormatEntry"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> <property name="toolTip"> <string><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></string> </property> + <property name="editable"> + <bool>true</bool> + </property> </widget> </item> <item> @@ -212,50 +221,50 @@ </hints> </connection> <connection> - <sender>timeFormatSystemDefault</sender> + <sender>dateFormatSystemDefault</sender> <signal>toggled(bool)</signal> - <receiver>timeFormatEntry</receiver> + <receiver>shortDateFormatEntry</receiver> <slot>setDisabled(bool)</slot> <hints> <hint type="sourcelabel"> - <x>79</x> - <y>210</y> + <x>99</x> + <y>132</y> </hint> <hint type="destinationlabel"> - <x>264</x> - <y>210</y> + <x>293</x> + <y>169</y> </hint> </hints> </connection> <connection> <sender>dateFormatSystemDefault</sender> <signal>toggled(bool)</signal> - <receiver>shortDateFormatEntry</receiver> + <receiver>dateFormatEntry</receiver> <slot>setDisabled(bool)</slot> <hints> <hint type="sourcelabel"> - <x>99</x> - <y>132</y> + <x>89</x> + <y>103</y> </hint> <hint type="destinationlabel"> - <x>293</x> - <y>169</y> + <x>273</x> + <y>103</y> </hint> </hints> </connection> <connection> - <sender>dateFormatSystemDefault</sender> + <sender>timeFormatSystemDefault</sender> <signal>toggled(bool)</signal> - <receiver>dateFormatEntry</receiver> + <receiver>timeFormatEntry</receiver> <slot>setDisabled(bool)</slot> <hints> <hint type="sourcelabel"> <x>89</x> - <y>103</y> + <y>190</y> </hint> <hint type="destinationlabel"> <x>273</x> - <y>103</y> + <y>190</y> </hint> </hints> </connection> |