diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-12-29 11:42:01 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-12-30 03:34:03 +0000 |
commit | 4556498f337d1a9cc4284167526280efa00810b5 (patch) | |
tree | 393ba6e17a82f8973de06738cc644cc4fdc02b2b /ui/qt/stats_tree_dialog.h | |
parent | b6ff338e81d4e1f42f2ec8cb90409dc17422f6c6 (diff) |
Qt: Convert more dialogs to WiresharkDialog.
Make the Sequence, IO Graph, Statistics Tree, and VoIP Calls dialogs
subclasses of WiresharkDialog.
Remove "Stats Tree" from Statistics Tree dialog titles. Don't complain
if the user opens more than one instance of the dialog.
Use the applicationName property in WiresharkApplication instead of a
separate variable.
Add a preexisting item to the IO Graph bug list (hovering when the file
is closed clears the graph).
Change-Id: I8411a25305d00b16e0d4a82fa50a9bad5c85b239
Reviewed-on: https://code.wireshark.org/review/6125
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/stats_tree_dialog.h')
-rw-r--r-- | ui/qt/stats_tree_dialog.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/qt/stats_tree_dialog.h b/ui/qt/stats_tree_dialog.h index eb50bf3819..4779da0166 100644 --- a/ui/qt/stats_tree_dialog.h +++ b/ui/qt/stats_tree_dialog.h @@ -30,7 +30,7 @@ #include "epan/stats_tree_priv.h" -#include <QDialog> +#include "wireshark_dialog.h" namespace Ui { class StatsTreeDialog; @@ -41,17 +41,16 @@ struct _tree_cfg_pres { class StatsTreeDialog* st_dlg; }; -class StatsTreeDialog : public QDialog +class StatsTreeDialog : public WiresharkDialog { Q_OBJECT public: - explicit StatsTreeDialog(QWidget *parent = 0, capture_file *cf = NULL, const char *cfg_abbr = NULL); + explicit StatsTreeDialog(QWidget &parent, CaptureFile &cf, const char *cfg_abbr = NULL); ~StatsTreeDialog(); static void setupNode(stat_node* node); public slots: - void setCaptureFile(capture_file *cf); private: Ui::StatsTreeDialog *ui; @@ -59,13 +58,13 @@ private: struct _tree_cfg_pres cfg_pr_; stats_tree *st_; stats_tree_cfg *st_cfg_; - capture_file *cap_file_; void fillTree(); static void resetTap(void *st_ptr); static void drawTreeItems(void *st_ptr); private slots: + void updateWidgets(); void on_applyFilterButton_clicked(); void on_actionCopyToClipboard_triggered(); void on_actionSaveAs_triggered(); |