diff options
author | Michael Mann <mmann78@netscape.net> | 2017-12-14 13:44:05 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-12-16 15:20:50 +0000 |
commit | 68668b785c73a1676ef4573290be7b50abb1c5a8 (patch) | |
tree | 44e0f842917c85bdf7c6b910ce6bc2a08a7ec5a9 /ui/qt/supported_protocols_dialog.h | |
parent | 2b4322ceba7e8f8679ef955efb6a6ab3e12adab0 (diff) |
Convert Supported Protocols dialog to use model
Also have search file search name, filter and description columns
Change-Id: Id519c5b1deb4a80e3b95437cf2e6d3e9510e4b11
Reviewed-on: https://code.wireshark.org/review/24857
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/qt/supported_protocols_dialog.h')
-rw-r--r-- | ui/qt/supported_protocols_dialog.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/ui/qt/supported_protocols_dialog.h b/ui/qt/supported_protocols_dialog.h index a305cf72a0..585da1898f 100644 --- a/ui/qt/supported_protocols_dialog.h +++ b/ui/qt/supported_protocols_dialog.h @@ -4,25 +4,14 @@ * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef SUPPORTED_PROTOCOLS_DIALOG_H #define SUPPORTED_PROTOCOLS_DIALOG_H #include "geometry_state_dialog.h" +#include <ui/qt/models/supported_protocols_model.h> namespace Ui { class SupportedProtocolsDialog; @@ -39,7 +28,9 @@ public: private: Ui::SupportedProtocolsDialog *ui; - int field_count_; + SupportedProtocolsModel* supported_protocols_model_; + SupportedProtocolsProxyModel* proxyModel_; + void updateStatistics(); private slots: |