summaryrefslogtreecommitdiffstats
path: root/download-dialog.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-20 17:58:06 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-20 17:58:06 -0300
commitf4acbb02e489672b6ee56e5bcf37b651039abb77 (patch)
treeb8787e8e3e13fd0a72d9390fca2717fa055062a8 /download-dialog.c
parenta542b25bde597b7bfe189f14a6868f711f879516 (diff)
downloadsubsurface-f4acbb02e489672b6ee56e5bcf37b651039abb77.tar.gz
Populate the Vendor && Dive computer information.
This uses the QStringListModel to populate the items of the QComboBoxes. I used a QHash to hold every Computer of a particular Vendor. so, products[vendor] gives me the full list of products from each vendor. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'download-dialog.c')
-rw-r--r--download-dialog.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/download-dialog.c b/download-dialog.c
index bbd499aaf..b98562571 100644
--- a/download-dialog.c
+++ b/download-dialog.c
@@ -9,24 +9,7 @@ const char *default_dive_computer_vendor;
const char *default_dive_computer_product;
const char *default_dive_computer_device;
-struct product {
- const char *product;
- dc_descriptor_t *descriptor;
- struct product *next;
-};
-
-struct vendor {
- const char *vendor;
- struct product *productlist;
- struct vendor *next;
-};
-struct mydescriptor {
- const char *vendor;
- const char *product;
- dc_family_t type;
- unsigned int model;
-};
struct vendor *dc_list;