From e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:34:10 +0200 Subject: Adding upstream version 4.2.2. Signed-off-by: Daniel Baumann --- ui/qt/supported_protocols_dialog.h | 51 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 ui/qt/supported_protocols_dialog.h (limited to 'ui/qt/supported_protocols_dialog.h') diff --git a/ui/qt/supported_protocols_dialog.h b/ui/qt/supported_protocols_dialog.h new file mode 100644 index 00000000..89afd3fa --- /dev/null +++ b/ui/qt/supported_protocols_dialog.h @@ -0,0 +1,51 @@ +/** @file + * + * Wireshark - Network traffic analyzer + * By Gerald Combs + * Copyright 1998 Gerald Combs + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef SUPPORTED_PROTOCOLS_DIALOG_H +#define SUPPORTED_PROTOCOLS_DIALOG_H + +#include "geometry_state_dialog.h" +#include + +namespace Ui { +class SupportedProtocolsDialog; +} + +class SupportedProtocolsDialog : public GeometryStateDialog +{ + Q_OBJECT + +public: + explicit SupportedProtocolsDialog(QWidget *parent = 0); + ~SupportedProtocolsDialog(); + +private: + Ui::SupportedProtocolsDialog *ui; + + SupportedProtocolsModel* supported_protocols_model_; + SupportedProtocolsProxyModel* proxyModel_; + QTimer *searchLineEditTimer; + QString searchLineEditText; + + void updateStatistics(); + +private slots: + void fillTree(); + + /** + * Update search results from the searchLineEdit field + * + * This is performed separately from on_searchLineEdit_textChanged + * to support debouncing. + */ + void updateSearchLineEdit(); + void on_searchLineEdit_textChanged(const QString &search_re); +}; + +#endif // SUPPORTED_PROTOCOLS_DIALOG_H -- cgit v1.2.3