aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/enabled_protocols_dialog.h
diff options
context:
space:
mode:
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