| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
coloring_rules_delegate.h
Go to the documentation of this file.
1
12#ifndef COLORING_RULE_DELEGATE_H
13#define COLORING_RULE_DELEGATE_H
14
15#include <config.h>
16
17#include <QStyledItemDelegate>
18#include <QModelIndex>
19
20 class ColoringRulesDelegate : public QStyledItemDelegate
21{
22 Q_OBJECT
23
24public:
25 ColoringRulesDelegate(QObject *parent = 0);
26
27 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
28 const QModelIndex &index) const;
29 void paint(QPainter *painter, const QStyleOptionViewItem &option,
30 const QModelIndex &index) const;
31 void setEditorData(QWidget *editor, const QModelIndex &index) const;
32 void setModelData(QWidget *editor, QAbstractItemModel *model,
33 const QModelIndex &index) const;
34
35 void updateEditorGeometry(QWidget *editor,
36 const QStyleOptionViewItem &option, const QModelIndex &index) const;
37
38signals:
39 void invalidField(const QModelIndex &index, const QString& errMessage) const;
40 void validField(const QModelIndex &index) const;
41
42private slots:
43 void ruleNameChanged(const QString name);
44};
45#endif // COLORING_RULE_DELEGATE_H
ColoringRulesDelegate
Definition coloring_rules_delegate.h:21