Wireshark 4.5.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
20class 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 setEditorData(QWidget *editor, const QModelIndex &index) const;
30 void setModelData(QWidget *editor, QAbstractItemModel *model,
31 const QModelIndex &index) const;
32
33 void updateEditorGeometry(QWidget *editor,
34 const QStyleOptionViewItem &option, const QModelIndex &index) const;
35
36signals:
37 void invalidField(const QModelIndex &index, const QString& errMessage) const;
38 void validField(const QModelIndex &index) const;
39
40private slots:
41 void ruleNameChanged(const QString name);
42};
43#endif // COLORING_RULE_DELEGATE_H
Definition coloring_rules_delegate.h:21