diff options
author | Gerald Combs <gerald@wireshark.org> | 2017-11-29 17:25:53 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2017-12-05 18:27:23 +0000 |
commit | abcb7ec8750a263d0307bc41d86b798e5ae02966 (patch) | |
tree | 6d37d9e65a4e93ae9f775b664d429b1fde064796 /fileset.c | |
parent | 5eb07b35d430b68c6d816476190035e0774f18d2 (diff) |
Convert the file set dialog treewidget to a treeview+model.
Add a FilesetEntryModel and use it in FileSetDialog. This should be
faster than using a QTreeWidget. Move dialog updates and date
calculations out of the "add file" loop.
Bug: 11280
Bug: 14242
Change-Id: I702cef4fe91e739695fe805dc5e496bf3db411f1
Reviewed-on: https://code.wireshark.org/review/24708
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'fileset.c')
-rw-r--r-- | fileset.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -27,14 +27,16 @@ #include "fileset.h" - - typedef struct _fileset { GList *entries; char *dirname; } fileset; -/* this is the fileset's global data */ +/* + * This is the fileset's global data. + * + * XXX This should probably be per-main-window instead of global. + */ static fileset set = { NULL, NULL}; /* @@ -258,13 +260,14 @@ void fileset_update_dlg(void *window) { GList *le; - - /* add all entries to the dialog */ + /* Add all entries to the dialog. */ + fileset_dlg_begin_add_file(window); le = g_list_first(set.entries); while(le) { fileset_dlg_add_file((fileset_entry *)le->data, window); le = g_list_next(le); } + fileset_dlg_end_add_file(window); } |