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 <epan/uat-int.h>
19 
20 #include <QStyledItemDelegate>
21 #include <QModelIndex>
22 
23 class UatDelegate : public QStyledItemDelegate
24 {
25  Q_OBJECT
26 
27 public:
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 
35 protected slots:
36  void pathHasChanged(QString newPath);
37 
38 private:
39  uat_field_t *indexToField(const QModelIndex &index) const;
40 };
41 #endif // UAT_DELEGATE_H
Definition: uat_delegate.h:24
Definition: uat.h:234