mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
dec47e11cd
commit
a55efcf7d8
6 changed files with 87 additions and 73 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue