mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
acbe5de1cb
commit
09904ddff5
4 changed files with 103 additions and 54 deletions
|
@ -60,10 +60,9 @@ private:
|
|||
void markChildrenAsEnabled();
|
||||
|
||||
Ui::DownloadFromDiveComputer ui;
|
||||
DownloadThread *thread;
|
||||
DownloadThread thread;
|
||||
bool downloading;
|
||||
|
||||
device_data_t data;
|
||||
int previousLast;
|
||||
|
||||
QStringListModel *vendorModel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue