|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Base class to inherit basic tree item from. More...
#include <tree_model_helpers.h>
Public Member Functions | |
| ModelHelperTreeItem (Item *parent) | |
| Constructs a new ModelHelperTreeItem. | |
| virtual | ~ModelHelperTreeItem () |
| Destroys the ModelHelperTreeItem and its children. | |
| void | appendChild (Item *child) |
| Appends a child item to the end of the children list. | |
| void | prependChild (Item *child) |
| Prepends a child item to the beginning of the children list. | |
| void | insertChild (int row, Item *child) |
| Inserts a child item at the specified row. | |
| void | removeChild (int row) |
| Removes and deletes the child item at the specified row. | |
| Item * | 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. | |
| Item * | parentItem () |
| Retrieves the parent item. | |
Protected Attributes | |
| Item * | parent_ |
| QList< QVariant > | childItems_ |
Base class to inherit basic tree item from.
|
inline |
Constructs a new ModelHelperTreeItem.
| parent | Pointer to the parent item. |
|
inline |
Appends a child item to the end of the children list.
| child | Pointer to the child item to append. |
|
inline |
Retrieves the child item at the specified row.
| row | The row index of the child to retrieve. |
|
inline |
Gets the total number of child items.
|
inline |
Inserts a child item at the specified row.
| row | The row index at which to insert the child. |
| child | Pointer to the child item to insert. |
|
inline |
Retrieves the parent item.
|
inline |
Prepends a child item to the beginning of the children list.
| child | Pointer to the child item to prepend. |
|
inline |
Removes and deletes the child item at the specified row.
| row | The row index of the child to remove. |
|
inline |
Gets the row index of this item relative to its parent.
|
protected |
List of child items stored as QVariants.
|
protected |
Pointer to the parent item.