aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-30 13:26:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-02 12:51:31 -0800
commit222ce62bceac4c7f95e7a0564f11b5789dc18d29 (patch)
tree23166424adbe7aa5433d58e5947d2a002308ceab /desktop-widgets/preferences
parent9eed778c68f72862b27695bee8b4dd1ba553bdc2 (diff)
downloadsubsurface-222ce62bceac4c7f95e7a0564f11b5789dc18d29.tar.gz
Preferences: add date and time format to language page
Not hooked up, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r--desktop-widgets/preferences/prefs_language.ui153
1 files changed, 149 insertions, 4 deletions
diff --git a/desktop-widgets/preferences/prefs_language.ui b/desktop-widgets/preferences/prefs_language.ui
index 650d543f6..af3a0ad87 100644
--- a/desktop-widgets/preferences/prefs_language.ui
+++ b/desktop-widgets/preferences/prefs_language.ui
@@ -29,7 +29,7 @@
<item>
<widget class="QCheckBox" name="languageSystemDefault">
<property name="text">
- <string>System default</string>
+ <string>Use system default</string>
</property>
</widget>
</item>
@@ -62,19 +62,116 @@
</layout>
</widget>
</item>
+ <item>
+ <widget class="QGroupBox" name="dateformat_group">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="title">
+ <string>Date format</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="1">
+ <widget class="QLineEdit" name="dateFormatEntry">
+ <property name="toolTip">
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Preferred date format. Commonly used fields are&lt;/p&gt;&lt;p&gt;d (day of month)&lt;/p&gt;&lt;p&gt;ddd (abbr. day name)&lt;/p&gt;&lt;p&gt;M (month number)&lt;/p&gt;&lt;p&gt;MMM (abbr. month name)&lt;/p&gt;&lt;p&gt;yy/yyyy (2/4 digit year)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0">
+ <widget class="QCheckBox" name="dateFormatSystemDefault">
+ <property name="text">
+ <string>Use UI language default</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLineEdit" name="shortDateFormatEntry"/>
+ </item>
+ <item row="1" column="3">
+ <widget class="QLabel" name="label">
+ <property name="toolTip">
+ <string>This is used in places where there is less space to show the full date</string>
+ </property>
+ <property name="text">
+ <string>Short format</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="3">
+ <spacer name="horizontalSpacer2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>203</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="timeformat_group">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="title">
+ <string>Time format</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout3">
<item>
- <spacer name="verticalSpacer">
+ <widget class="QCheckBox" name="timeFormatSystemDefault">
+ <property name="text">
+ <string>Use UI language default</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="timeFormatEntry">
+ <property name="toolTip">
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Preferred time format&lt;/p&gt;&lt;p&gt;Commonly used format specifiers are&lt;/p&gt;&lt;p&gt;h (hours in 12h format)&lt;/p&gt;&lt;p&gt;H (hours in 24h format)&lt;/p&gt;&lt;p&gt;mm (2 digit minutes)&lt;/p&gt;&lt;p&gt;ss (2 digit seconds)&lt;/p&gt;&lt;p&gt;t/tt (a/p or am/pm)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer3">
<property name="orientation">
- <enum>Qt::Vertical</enum>
+ <enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
- <width>20</width>
+ <width>203</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
</layout>
</widget>
<resources/>
@@ -111,5 +208,53 @@
</hint>
</hints>
</connection>
+ <connection>
+ <sender>dateFormatSystemDefault</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>dateFormatEntry</receiver>
+ <slot>setDisabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>79</x>
+ <y>132</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>264</x>
+ <y>132</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>timeFormatSystemDefault</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>timeFormatEntry</receiver>
+ <slot>setDisabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>79</x>
+ <y>210</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>264</x>
+ <y>210</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>dateFormatSystemDefault</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>shortDateFormatEntry</receiver>
+ <slot>setDisabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>99</x>
+ <y>132</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>293</x>
+ <y>169</y>
+ </hint>
+ </hints>
+ </connection>
</connections>
</ui>