diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2019-01-20 17:00:56 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-21 17:22:24 +1200 |
commit | e8b0d165a78e802c09edc7dd0ea4ae5bed1d46d6 (patch) | |
tree | 2c2ee51bc48f074f69003a3d7897c310684e1813 /qt-models/filtermodels.h | |
parent | 5986225fcec159a9fa4d18cc89e54ae18d97e333 (diff) | |
download | subsurface-e8b0d165a78e802c09edc7dd0ea4ae5bed1d46d6.tar.gz |
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>
Diffstat (limited to 'qt-models/filtermodels.h')
-rw-r--r-- | qt-models/filtermodels.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h index 5cb130522..f9be3a2ad 100644 --- a/qt-models/filtermodels.h +++ b/qt-models/filtermodels.h @@ -24,8 +24,10 @@ struct FilterData { double maxWaterTemp = 100; double minAirTemp = 0; double maxAirTemp = 100; - QDateTime from; - QDateTime to = QDateTime::currentDateTime(); + QDateTime fromDate; + QTime fromTime; + QDateTime toDate = QDateTime::currentDateTime(); + QTime toTime = QTime::currentTime(); QStringList tags; QStringList people; QStringList location; |