Desktop, Filter UI: make date/time consistent

On all (most?) places we use separate date/time fields for the time of a
dive, and we follow the setting from the preferences to format those.

Make the new filter widget consistent, with respect to the to and from
interval.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2019-01-20 17:00:56 +01:00 committed by Dirk Hohndel
parent 5986225fce
commit e8b0d165a7
4 changed files with 57 additions and 17 deletions

View file

@ -160,9 +160,6 @@
</property>
</widget>
</item>
<item row="5" column="1" colspan="4">
<widget class="QDateTimeEdit" name="from"/>
</item>
<item row="10" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
@ -170,9 +167,6 @@
</property>
</widget>
</item>
<item row="6" column="1" colspan="4">
<widget class="QDateTimeEdit" name="to"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
@ -252,6 +246,26 @@
</property>
</widget>
</item>
<item row="5" column="3">
<widget class="QTimeEdit" name="fromTime"/>
</item>
<item row="5" column="1" colspan="2">
<widget class="QDateTimeEdit" name="fromDate">
<property name="calendarPopup">
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="1" colspan="2">
<widget class="QDateTimeEdit" name="toDate">
<property name="calendarPopup">
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="3">
<widget class="QTimeEdit" name="toTime"/>
</item>
</layout>
</widget>
<customwidgets>
@ -267,8 +281,12 @@
<tabstop>maxRating</tabstop>
<tabstop>minVisibility</tabstop>
<tabstop>maxVisibility</tabstop>
<tabstop>from</tabstop>
<tabstop>to</tabstop>
<tabstop>fromDate</tabstop>
<tabstop>fromTime</tabstop>
<tabstop>toDate</tabstop>
<tabstop>toTime</tabstop>
<tabstop>logged</tabstop>
<tabstop>planned</tabstop>
<tabstop>tags</tabstop>
<tabstop>people</tabstop>
<tabstop>location</tabstop>