diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2017-05-19 11:23:11 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-27 11:07:19 -0700 |
commit | 09904ddff525ccf3f1165956e0d2d5483290bf12 (patch) | |
tree | b1c54567323913929bb1addbf5d19f11eb3c8db6 /desktop-widgets/downloadfromdivecomputer.h | |
parent | acbe5de1cbc446884a41e9c96b3777d2acc692c4 (diff) | |
download | subsurface-09904ddff525ccf3f1165956e0d2d5483290bf12.tar.gz |
Extract the device_data_t into helper class
Keeping the Desktop and QML versions of Subsurface
using the same codebase will keep the code saner,
this change makes the Desktop version use the
DCDeviceData helper sturct that encapsulates
the device_data_t member for easy access on the
QML. This also helped move a bit of initializations
from the UI to the Core - and that's always good.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.h')
-rw-r--r-- | desktop-widgets/downloadfromdivecomputer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.h b/desktop-widgets/downloadfromdivecomputer.h index f137bcd5e..399debc52 100644 --- a/desktop-widgets/downloadfromdivecomputer.h +++ b/desktop-widgets/downloadfromdivecomputer.h @@ -60,10 +60,9 @@ private: void markChildrenAsEnabled(); Ui::DownloadFromDiveComputer ui; - DownloadThread *thread; + DownloadThread thread; bool downloading; - device_data_t data; int previousLast; QStringListModel *vendorModel; |