12 #ifndef DECODE_AS_DELEGATE_H
13 #define DECODE_AS_DELEGATE_H
20 #include <QStyledItemDelegate>
26 const gchar* proto_name;
27 const gchar* table_ui_name;
28 guint8 curr_layer_num;
36 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
37 const QModelIndex &index)
const override;
38 void destroyEditor(QWidget *editor,
const QModelIndex &index)
const override;
39 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
40 void setModelData(QWidget *editor, QAbstractItemModel *model,
41 const QModelIndex &index)
const override;
44 void updateEditorGeometry(QWidget *editor,
45 const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
49 DecodeAsItem *indexToField(
const QModelIndex &index)
const;
50 void collectDAProtocols(QSet<QString>& all_protocols, QList<QString>& current_list)
const;
51 void cachePacketProtocols();
54 static void decodeAddProtocol(
const gchar *table_name,
const gchar *proto_name, gpointer value, gpointer user_data);
57 QList<packet_proto_data_t> packet_proto_list_;
Definition: decode_as_delegate.h:32
Definition: decode_as_model.h:28
Definition: decode_as_delegate.h:25