diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-29 16:57:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-02 12:51:31 -0800 |
commit | f85883c707e9d6c021025dfe406c9acfb6441e57 (patch) | |
tree | 06312dea8132dd0595b360c923ddde9d5de3e736 /desktop-widgets/diveplanner.cpp | |
parent | 222ce62bceac4c7f95e7a0564f11b5789dc18d29 (diff) | |
download | subsurface-f85883c707e9d6c021025dfe406c9acfb6441e57.tar.gz |
Create date and time formats preferences
Now we can actually change them in preferences instead of just deriving
them from the language set.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r-- | desktop-widgets/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index 86f03b1d2..fd14944f0 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -104,7 +104,7 @@ void DiveHandler::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f) { ui.setupUi(this); - ui.dateEdit->setDisplayFormat(getDateFormat()); + ui.dateEdit->setDisplayFormat(prefs.date_format); ui.tableWidget->setTitle(tr("Dive planner points")); ui.tableWidget->setModel(plannerModel); plannerModel->setRecalc(true); |