diff options
author | Sergey Starosek <sergey.starosek@gmail.com> | 2014-07-16 20:35:22 +0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-16 13:58:06 -0700 |
commit | 14cc59898a9b6405ba239919137a5c57e7e6e0d0 (patch) | |
tree | df935a4514ef1f6bb1c434d6625207a51c87f1e7 /qt-ui/diveplanner.cpp | |
parent | 0dd40b7a514a2ea02c2f4160a74b23c0fb9a41dd (diff) | |
download | subsurface-14cc59898a9b6405ba239919137a5c57e7e6e0d0.tar.gz |
Date picker l10n for profile and planner
- set application-wide locale from preferences
- use custom date format for display
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 7c69c7d6b..9efe80ee1 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -252,6 +252,7 @@ void DiveHandler::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f) { ui.setupUi(this); + ui.dateEdit->setDisplayFormat(getDateFormat()); ui.tableWidget->setTitle(tr("Dive planner points")); ui.tableWidget->setModel(DivePlannerPointsModel::instance()); DivePlannerPointsModel::instance()->setRecalc(true); |