Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
19class WiresharkPreference : public QObject
20{
21public:
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
30protected:
31 PrefsItem * prefsItem() const;
32
33private:
34 PrefsItem * _prefsItem;
35
36};
37
38#endif // WIRESHARK_PREFERENCE_H
Definition pref_models.h:70
Definition wireshark_preference.h:20