Wireshark  4.3.0
The Wireshark network protocol analyzer
wireshark_preference.h
Go to the documentation of this file.
1 
10 #ifndef WIRESHARK_PREFERENCE_H
11 #define WIRESHARK_PREFERENCE_H
12 
14 
15 #include <QStyleOptionViewItem>
16 #include <QModelIndex>
17 #include <QWidget>
18 
19 class WiresharkPreference : public QObject
20 {
21 public:
22  explicit Q_INVOKABLE WiresharkPreference(QObject * parent = Q_NULLPTR);
23 
24  virtual QWidget * editor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index);
25  virtual void setData(QWidget *editor, const QModelIndex &index);
26  virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index);
27 
28  void setPrefsItem(PrefsItem *);
29 
30 protected:
31  PrefsItem * prefsItem() const;
32 
33 private:
34  PrefsItem * _prefsItem;
35 
36 };
37 
38 #endif // WIRESHARK_PREFERENCE_H
Definition: pref_models.h:23
Definition: wireshark_preference.h:20