QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
Signals | Public Member Functions | List of all members
QgsTreeWidgetItemObject Class Reference

Custom QgsTreeWidgetItem with extra signals when item is edited. More...

#include <qgstreewidgetitem.h>

Inheritance diagram for QgsTreeWidgetItemObject:
Inheritance graph
[legend]

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...
 
- Public Member Functions inherited from QgsTreeWidgetItem
 QgsTreeWidgetItem (QTreeWidget *view, int type=Type)
 Constructor for QgsTreeWidgetItem. More...
 
 QgsTreeWidgetItem (int type=Type)
 Constructor for QgsTreeWidgetItem. More...
 
 QgsTreeWidgetItem (const QStringList &strings, int type=Type)
 Constructor for QgsTreeWidgetItem. More...
 
 QgsTreeWidgetItem (QTreeWidget *view, const QStringList &strings, int type=Type)
 Constructor for QgsTreeWidgetItem. More...
 
 QgsTreeWidgetItem (QTreeWidget *view, QTreeWidgetItem *after, int type=Type)
 Constructor for QgsTreeWidgetItem. More...
 
 QgsTreeWidgetItem (QTreeWidgetItem *parent, int type=Type)
 Constructor for QgsTreeWidgetItem. More...
 
 QgsTreeWidgetItem (QTreeWidgetItem *parent, const QStringList &strings, 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...
 

Detailed Description

Custom QgsTreeWidgetItem with extra signals when item is edited.

Since
QGIS 3.0

Definition at line 162 of file qgstreewidgetitem.h.

Constructor & Destructor Documentation

◆ QgsTreeWidgetItemObject() [1/2]

QgsTreeWidgetItemObject::QgsTreeWidgetItemObject ( int  type = Type)
explicit

Constructor for QgsTreeWidgetItemObject.

Parameters
typeitem type

Definition at line 130 of file qgstreewidgetitem.cpp.

◆ QgsTreeWidgetItemObject() [2/2]

QgsTreeWidgetItemObject::QgsTreeWidgetItemObject ( QTreeWidget *  parent,
int  type = Type 
)
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.

Member Function Documentation

◆ itemEdited

void QgsTreeWidgetItemObject::itemEdited ( QTreeWidgetItem *  item,
int  column 
)
signal

Emitted when the contents of the column in the specified item has been edited by the user.

◆ setData()

void QgsTreeWidgetItemObject::setData ( int  column,
int  role,
const QVariant &  value 
)
override

Sets the value for the item's column and role to the given value.

Definition at line 139 of file qgstreewidgetitem.cpp.


The documentation for this class was generated from the following files: