summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-08 11:29:28 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-08 07:45:30 -0800
commit09d6d4f5deff46999f3739fb8d670ecc867f60f1 (patch)
treeb13530e1ec22dc55708db582e0ba0fd16f6b2a29 /qt-ui
parentacb51682548a7e7596eb3f8d67ce772d617c06bf (diff)
downloadsubsurface-09d6d4f5deff46999f3739fb8d670ecc867f60f1.tar.gz
Dive d/l selection UI: Create a button to download the data from DC
Now, ok should close the dialog, and not download the dives from the DC, this way the user can choose what happens. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp3
-rw-r--r--qt-ui/downloadfromdivecomputer.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index e9cb94220..4e4a24f7b 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -54,6 +54,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) :
ui.progressBar->setMinimum(0);
ui.progressBar->setMaximum(100);
diveImportedModel = new DiveImportedModel(this);
+ ui.downloadedView->setModel(diveImportedModel);
progress_bar_text = "";
@@ -270,7 +271,7 @@ void DownloadFromDCWidget::on_cancel_clicked()
updateState(CANCELLING);
}
-void DownloadFromDCWidget::on_ok_clicked()
+void DownloadFromDCWidget::on_startDownload_clicked()
{
updateState(DOWNLOADING);
diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h
index 8ab7e3651..a23beb0f1 100644
--- a/qt-ui/downloadfromdivecomputer.h
+++ b/qt-ui/downloadfromdivecomputer.h
@@ -59,7 +59,7 @@ public:
public
slots:
- void on_ok_clicked();
+ void on_startDownload_clicked();
void on_cancel_clicked();
void on_search_clicked();
void on_vendor_currentIndexChanged(const QString &vendor);