From cb5ab4bc8e192e65dded3bc3f3bfb703441e5436 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 15 Feb 2014 10:51:23 +0200 Subject: Add unit support for CSV import Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/divelogimportdialog.cpp | 1 + qt-ui/divelogimportdialog.ui | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp index 3005d1584..36e69d06f 100644 --- a/qt-ui/divelogimportdialog.cpp +++ b/qt-ui/divelogimportdialog.cpp @@ -66,6 +66,7 @@ void DiveLogImportDialog::on_buttonBox_accepted() VALUE_IF_CHECKED(CSVstopdepth), ui->CSVSeparator->currentIndex(), specialCSV.contains(ui->knownImports->currentIndex()) ? CSVApps[ui->knownImports->currentIndex()].name.toUtf8().data() : "csv", + ui->CSVUnits->currentIndex(), &error); if (error != NULL) { MainWindow::instance()->showError(error); diff --git a/qt-ui/divelogimportdialog.ui b/qt-ui/divelogimportdialog.ui index 627a12a74..e2cf958a9 100644 --- a/qt-ui/divelogimportdialog.ui +++ b/qt-ui/divelogimportdialog.ui @@ -239,6 +239,39 @@ stopdepthCheckBox CSVstopdepth + + + + 210 + 150 + 271 + 80 + + + + Units + + + + + 20 + 30 + 251 + 29 + + + + + Metric + + + + + Imperial + + + + -- cgit v1.2.3-70-g09d2