QGIS API Documentation
3.18.1-Zürich (202f1bf7e5)
|
Custom QgsTreeWidgetItem with extra signals when item is edited. More...
#include <qgstreewidgetitem.h>
Signals | |
void | itemEdited (QTreeWidgetItem *item, int column) |
Emitted when the contents of the column in the specified item has been edited by the user. More... | |
Public Member Functions | |
QgsTreeWidgetItemObject (int type=Type) | |
Constructor for QgsTreeWidgetItemObject. More... | |
QgsTreeWidgetItemObject (QTreeWidget *parent, int type=Type) | |
Constructs a tree widget item of the specified type and appends it to the items in the given parent. More... | |
void | setData (int column, int role, const QVariant &value) override |
Sets the value for the item's column and role to the given value. More... | |
![]() | |
QgsTreeWidgetItem (const QStringList &strings, int type=Type) | |
Constructor for QgsTreeWidgetItem. More... | |
QgsTreeWidgetItem (int type=Type) | |
Constructor for QgsTreeWidgetItem. More... | |
QgsTreeWidgetItem (QTreeWidget *view, const QStringList &strings, int type=Type) | |
Constructor for QgsTreeWidgetItem. More... | |
QgsTreeWidgetItem (QTreeWidget *view, int type=Type) | |
Constructor for QgsTreeWidgetItem. More... | |
QgsTreeWidgetItem (QTreeWidget *view, QTreeWidgetItem *after, int type=Type) | |
Constructor for QgsTreeWidgetItem. More... | |
QgsTreeWidgetItem (QTreeWidgetItem *parent, const QStringList &strings, int type=Type) | |
Constructor for QgsTreeWidgetItem. More... | |
QgsTreeWidgetItem (QTreeWidgetItem *parent, int type=Type) | |
Constructor for QgsTreeWidgetItem. More... | |
QgsTreeWidgetItem (QTreeWidgetItem *parent, QTreeWidgetItem *after, int type=Type) | |
Constructor for QgsTreeWidgetItem. More... | |
int | alwaysOnTopPriority () const |
Returns the item's priority when it is set to show always on top. More... | |
bool | operator< (const QTreeWidgetItem &other) const override |
Returns true if this item should appear before another item when sorting a list of items. More... | |
bool | operator>= (const QTreeWidgetItem &other) const |
Returns true if this item should appear after another item when sorting a list of items. More... | |
void | setAlwaysOnTopPriority (int priority) |
Sets a the item to display always on top of other items in the widget, regardless of the sort column and sort or display value for the item. More... | |
void | setSortData (int column, const QVariant &value) |
Sets the custom sort data for a specified column. More... | |
QVariant | sortData (int column) const |
Returns the custom sort data for a specified column. More... | |
Custom QgsTreeWidgetItem with extra signals when item is edited.
Definition at line 162 of file qgstreewidgetitem.h.
|
explicit |
Constructor for QgsTreeWidgetItemObject.
type | item type |
Definition at line 130 of file qgstreewidgetitem.cpp.
|
explicit |
Constructs a tree widget item of the specified type and appends it to the items in the given parent.
Definition at line 134 of file qgstreewidgetitem.cpp.
|
signal |
Emitted when the contents of the column in the specified item has been edited by the user.
|
override |
Sets the value for the item's column and role to the given value.
Definition at line 139 of file qgstreewidgetitem.cpp.