aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/enabled_protocols_dialog.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-12-16 21:51:33 -0500
committerRoland Knall <rknall@gmail.com>2017-12-19 08:21:19 +0000
commit0d6eb9631f26176d00d6bef69569d1d2911bd233 (patch)
tree97ae18832c54a74ed94ecc17e3f102d45e7a5680 /ui/qt/enabled_protocols_dialog.h
parent6e4a6364154f4e880f2bb6111d6759e51a686bb4 (diff)
Convert Enabled protocols dialog to use model.
Change-Id: I618df2f2608adcd1be5da02262c5296e4d86cfba Reviewed-on: https://code.wireshark.org/review/24866 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/enabled_protocols_dialog.h')
-rw-r--r--ui/qt/enabled_protocols_dialog.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/ui/qt/enabled_protocols_dialog.h b/ui/qt/enabled_protocols_dialog.h
index 6b44bd49e7..cf2aa74514 100644
--- a/ui/qt/enabled_protocols_dialog.h
+++ b/ui/qt/enabled_protocols_dialog.h
@@ -24,23 +24,19 @@
#include "geometry_state_dialog.h"
#include "wireshark_dialog.h"
+#include <ui/qt/models/enabled_protocols_model.h>
namespace Ui {
class EnabledProtocolsDialog;
}
-struct _protocol;
-
-class QAbstractButton;
-
class EnabledProtocolsDialog : public GeometryStateDialog
{
Q_OBJECT
public:
explicit EnabledProtocolsDialog(QWidget *parent);
- ~EnabledProtocolsDialog();
- void selectProtocol(struct _protocol *protocol);
+ virtual ~EnabledProtocolsDialog();
private slots:
void on_invert_button__clicked();
@@ -48,18 +44,14 @@ private slots:
void on_disable_all_button__clicked();
void on_search_line_edit__textChanged(const QString &search_re);
void on_buttonBox_accepted();
-#if 0
- void on_buttonBox_clicked(QAbstractButton *button);
-#endif
void on_buttonBox_helpRequested();
+ void fillTree();
private:
Ui::EnabledProtocolsDialog *ui;
- static void addHeuristicItem(gpointer data, gpointer user_data);
- bool applyChanges();
- void writeChanges();
-
+ EnabledProtocolsModel* enabled_protocols_model_;
+ EnabledProtocolsProxyModel* proxyModel_;
};
#endif // ENABLED_PROTOCOLS_DIALOG_H