|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Represents a single coloring rule item in a tree model. More...
#include <coloring_rules_model.h>
Public Member Functions | |
| ColoringRuleItem (bool disabled, QString name, QString filter, QColor foreground, QColor background, ColoringRuleItem *parent) | |
| Constructs a new ColoringRuleItem. | |
| virtual | ~ColoringRuleItem () |
| Destroys the ColoringRuleItem. | |
| ColoringRuleItem (color_filter_t *colorf, ColoringRuleItem *parent) | |
| Constructs a new ColoringRuleItem from a core color filter structure. | |
| ColoringRuleItem (const ColoringRuleItem &item) | |
| Copy constructor for ColoringRuleItem. | |
| ColoringRuleItem & | operator= (ColoringRuleItem &rhs) |
| Assignment operator for ColoringRuleItem. | |
Public Member Functions inherited from ModelHelperTreeItem< ColoringRuleItem > | |
| ModelHelperTreeItem (ColoringRuleItem *parent) | |
| Constructs a new ModelHelperTreeItem. | |
| virtual | ~ModelHelperTreeItem () |
| Destroys the ModelHelperTreeItem and its children. | |
| void | appendChild (ColoringRuleItem *child) |
| Appends a child item to the end of the children list. | |
| void | prependChild (ColoringRuleItem *child) |
| Prepends a child item to the beginning of the children list. | |
| void | insertChild (int row, ColoringRuleItem *child) |
| Inserts a child item at the specified row. | |
| void | removeChild (int row) |
| Removes and deletes the child item at the specified row. | |
| ColoringRuleItem * | child (int row) |
| Retrieves the child item at the specified row. | |
| int | childCount () const |
| Gets the total number of child items. | |
| int | row () |
| Gets the row index of this item relative to its parent. | |
| ColoringRuleItem * | parentItem () |
| Retrieves the parent item. | |
Additional Inherited Members | |
Protected Attributes inherited from ModelHelperTreeItem< ColoringRuleItem > | |
| ColoringRuleItem * | parent_ |
| QList< QVariant > | childItems_ |
Represents a single coloring rule item in a tree model.
| ColoringRuleItem::ColoringRuleItem | ( | bool | disabled, |
| QString | name, | ||
| QString | filter, | ||
| QColor | foreground, | ||
| QColor | background, | ||
| ColoringRuleItem * | parent | ||
| ) |
Constructs a new ColoringRuleItem.
| disabled | True if the rule is disabled. |
| name | The name of the rule. |
| filter | The filter string for the rule. |
| foreground | The foreground color. |
| background | The background color. |
| parent | The parent rule item. |
| ColoringRuleItem::ColoringRuleItem | ( | color_filter_t * | colorf, |
| ColoringRuleItem * | parent | ||
| ) |
Constructs a new ColoringRuleItem from a core color filter structure.
| colorf | Pointer to the core color filter. |
| parent | The parent rule item. |
| ColoringRuleItem::ColoringRuleItem | ( | const ColoringRuleItem & | item | ) |
Copy constructor for ColoringRuleItem.
| item | The item to copy. |
| ColoringRuleItem & ColoringRuleItem::operator= | ( | ColoringRuleItem & | rhs | ) |
Assignment operator for ColoringRuleItem.
| rhs | The item to assign from. |