diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2017-04-27 20:24:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-27 08:07:35 -0700 |
commit | a55efcf7d88e0521d754508b7ff9f0e89692950a (patch) | |
tree | 60e407cdbc9e38c077c0469d89cae12b413992c0 /subsurface-mobile-main.cpp | |
parent | dec47e11cd3aa1f4c6333a69c72df4c4d5e0628f (diff) | |
download | subsurface-a55efcf7d88e0521d754508b7ff9f0e89692950a.tar.gz |
Move the fill_computer_list() out of widgets
fill_computer_list() creates a Qt friendly
structure that contains all of the necessary
information about dive computers and it's
devices, and it's needed both in Qml and Widgets
to allow the user to download their dives.
This patch makes it possible to use the code
in QML without duplication.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-mobile-main.cpp')
-rw-r--r-- | subsurface-mobile-main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp index c7f627fee..96a0d4f54 100644 --- a/subsurface-mobile-main.cpp +++ b/subsurface-mobile-main.cpp @@ -12,6 +12,7 @@ #include "core/color.h" #include "core/qthelper.h" #include "core/helpers.h" +#include "core/downloadfromdcthread.h" #include <QStringList> #include <QApplication> @@ -44,6 +45,8 @@ int main(int argc, char **argv) default_prefs.units = IMPERIAL_units; prefs = default_prefs; fill_profile_color(); + fill_computer_list(); + parse_xml_init(); taglist_init_global(); init_ui(); |