Wireshark
4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ui
qt
models
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
17
#include <
ui/qt/models/pref_models.h
>
18
19
#include <QStyledItemDelegate>
20
#include <QModelIndex>
21
22
class
AdvancedPrefDelegate
:
public
QStyledItemDelegate
23
{
24
public
:
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
33
private
:
34
PrefsItem
* indexToPref(
const
QModelIndex &index)
const
;
35
};
36
37
#endif
// PREF_DELEGATE_H
AdvancedPrefDelegate
Definition
pref_delegate.h:23
PrefsItem
Definition
pref_models.h:70
pref_models.h
Generated by
1.9.8