QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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.
 

Public Member Functions

 QgsTreeWidgetItemObject (int type=Type)
 Constructor for QgsTreeWidgetItemObject.
 
 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.
 
void setData (int column, int role, const QVariant &value) override
 Sets the value for the item's column and role to the given value.
 
- Public Member Functions inherited from QgsTreeWidgetItem
 QgsTreeWidgetItem (const QStringList &strings, int type=Type)
 Constructor for QgsTreeWidgetItem.
 
 QgsTreeWidgetItem (int type=Type)
 Constructor for QgsTreeWidgetItem.
 
 QgsTreeWidgetItem (QTreeWidget *view, const QStringList &strings, int type=Type)
 Constructor for QgsTreeWidgetItem.
 
 QgsTreeWidgetItem (QTreeWidget *view, int type=Type)
 Constructor for QgsTreeWidgetItem.
 
 QgsTreeWidgetItem (QTreeWidget *view, QTreeWidgetItem *after, int type=Type)
 Constructor for QgsTreeWidgetItem.
 
 QgsTreeWidgetItem (QTreeWidgetItem *parent, const QStringList &strings, int type=Type)
 Constructor for QgsTreeWidgetItem.
 
 QgsTreeWidgetItem (QTreeWidgetItem *parent, int type=Type)
 Constructor for QgsTreeWidgetItem.
 
 QgsTreeWidgetItem (QTreeWidgetItem *parent, QTreeWidgetItem *after, int type=Type)
 Constructor for QgsTreeWidgetItem.
 
int alwaysOnTopPriority () const
 Returns the item's priority when it is set to show always on top.
 
bool operator< (const QTreeWidgetItem &other) const override
 Returns true if this item should appear before another item when sorting a list of items.
 
bool operator>= (const QTreeWidgetItem &other) const
 Returns true if this item should appear after another item when sorting a list of items.
 
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.
 
void setSortData (int column, const QVariant &value)
 Sets the custom sort data for a specified column.
 
QVariant sortData (int column) const
 Returns the custom sort data for a specified column.
 

Detailed Description

Custom QgsTreeWidgetItem with extra signals when item is edited.

Definition at line 160 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 132 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 136 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 141 of file qgstreewidgetitem.cpp.


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