From f4acbb02e489672b6ee56e5bcf37b651039abb77 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 20 May 2013 17:58:06 -0300 Subject: 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 --- download-dialog.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'download-dialog.c') 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; -- cgit v1.2.3-70-g09d2