Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
uat_delegate.h
Go to the documentation of this file.
1
14#ifndef UAT_DELEGATE_H
15#define UAT_DELEGATE_H
16
17#include <config.h>
18#include <epan/uat-int.h>
19
20#include <QStyledItemDelegate>
21#include <QModelIndex>
22
23class UatDelegate : public QStyledItemDelegate
24{
25 Q_OBJECT
26
27public:
28 UatDelegate(QObject *parent = 0);
29
30 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
31 void setEditorData(QWidget *editor, const QModelIndex &index) const override;
32 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
33 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
34
35protected slots:
36 void pathHasChanged(QString newPath);
37
38private:
39 uat_field_t *indexToField(const QModelIndex &index) const;
40};
41#endif // UAT_DELEGATE_H
Definition uat_delegate.h:24
Definition uat.h:234