From 09904ddff525ccf3f1165956e0d2d5483290bf12 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 19 May 2017 11:23:11 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- desktop-widgets/downloadfromdivecomputer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'desktop-widgets/downloadfromdivecomputer.h') 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; -- cgit v1.2.3-70-g09d2