diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-18 10:00:39 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-18 10:03:55 -0800 |
commit | 7d0cc6b337f242be2d15744465cc6adec5937193 (patch) | |
tree | 41ffa2383570a8745912b723f9cbbe10c9c0ef99 /qt-ui/shifttimes.ui | |
parent | 4966336e1d6c729e5763aa3ac607c77f8794e5da (diff) | |
download | subsurface-7d0cc6b337f242be2d15744465cc6adec5937193.tar.gz |
Improve shift time functionality
In commit 85fab31c71fc ("Shift times of selected dives") we added a dialog
that didn't align its content very well. This change improves the layout
(I hope) and makes the labels in the layout clearer (earlier and later seem
easier to correlate with the direction of the shift).
The original commit also forgets to deal with the consequences of shifting
the dives. The dive list needs to be re-sorted (as the relative order of
dives could have changed) and be marked as changed. And we should try to
maintain the selection across these operations.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/shifttimes.ui')
-rw-r--r-- | qt-ui/shifttimes.ui | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/qt-ui/shifttimes.ui b/qt-ui/shifttimes.ui index 39b3250a1..b3c8c958f 100644 --- a/qt-ui/shifttimes.ui +++ b/qt-ui/shifttimes.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>229</width> - <height>134</height> + <width>343</width> + <height>226</height> </rect> </property> <property name="windowTitle"> @@ -18,7 +18,7 @@ <number>0</number> </property> <property name="leftMargin"> - <number>0</number> + <number>14</number> </property> <property name="topMargin"> <number>0</number> @@ -35,11 +35,14 @@ <string>Shift times of selected dives by</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> + <property name="spacing"> + <number>0</number> + </property> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> - <number>0</number> + <number>23</number> </property> <property name="rightMargin"> <number>0</number> @@ -73,29 +76,25 @@ <day>1</day> </date> </property> + <property name="displayFormat"> + <string>h:mm</string> + </property> <property name="timeSpec"> <enum>Qt::LocalTime</enum> </property> - <property name="time"> - <time> - <hour>0</hour> - <minute>0</minute> - <second>0</second> - </time> - </property> </widget> </item> <item> <widget class="QRadioButton" name="backwards"> <property name="text"> - <string>backwards</string> + <string>earlier</string> </property> </widget> </item> <item> <widget class="QRadioButton" name="forward"> <property name="text"> - <string>forward</string> + <string>later</string> </property> <property name="checked"> <bool>true</bool> |