Wireshark  4.3.0
The Wireshark network protocol analyzer
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 <glib.h>
19 #include <epan/uat-int.h>
20 
21 #include <QStyledItemDelegate>
22 #include <QModelIndex>
23 
24 class UatDelegate : public QStyledItemDelegate
25 {
26  Q_OBJECT
27 
28 public:
29  UatDelegate(QObject *parent = 0);
30 
31  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
32  void setEditorData(QWidget *editor, const QModelIndex &index) const override;
33  void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
34  void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
35 
36 protected slots:
37  void pathHasChanged(QString newPath);
38 
39 private:
40  uat_field_t *indexToField(const QModelIndex &index) const;
41 };
42 #endif // UAT_DELEGATE_H
Definition: uat_delegate.h:25
Definition: uat.h:228