Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
wireshark_preference.h
1 /* wireshark_preference.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef WIRESHARK_PREFERENCE_H
11 #define WIRESHARK_PREFERENCE_H
12 
13 #include <ui/qt/models/pref_models.h>
14 
15 #include <QStyleOptionViewItem>
16 #include <QModelIndex>
17 #include <QWidget>
18 
19 class WiresharkPreference : public QObject
20 {
21  Q_OBJECT
22 public:
23  explicit Q_INVOKABLE WiresharkPreference(QObject * parent = Q_NULLPTR);
24 
25  virtual QWidget * editor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index);
26  virtual void setData(QWidget *editor, const QModelIndex &index);
27  virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index);
28 
29  void setPrefsItem(PrefsItem *);
30 
31 protected:
32  PrefsItem * prefsItem() const;
33 
34 private:
35  PrefsItem * _prefsItem;
36 
37 };
38 
39 #endif // WIRESHARK_PREFERENCE_H
Definition: pref_models.h:22
Definition: pcapng.c:148
Definition: wireshark_preference.h:19