Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
pref_delegate.h
Go to the documentation of this file.
1
12#ifndef PREF_DELEGATE_H
13#define PREF_DELEGATE_H
14
15#include <config.h>
16
18
19#include <QStyledItemDelegate>
20#include <QModelIndex>
21
22class AdvancedPrefDelegate : public QStyledItemDelegate
23{
24public:
25 AdvancedPrefDelegate(QObject *parent = 0);
26
27 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
28 const QModelIndex &index) const;
29 void setEditorData(QWidget *editor, const QModelIndex &index) const;
30 void setModelData(QWidget *editor, QAbstractItemModel *model,
31 const QModelIndex &index) const;
32
33private:
34 PrefsItem* indexToPref(const QModelIndex &index) const;
35};
36
37#endif // PREF_DELEGATE_H
Definition pref_delegate.h:23
Definition pref_models.h:70