19 #ifndef QGSTREEWIDGETITEM_H 20 #define QGSTREEWIDGETITEM_H 22 #include <QTreeWidgetItem> 66 QgsTreeWidgetItem( QTreeWidget *view SIP_TRANSFERTHIS,
const QStringList &strings,
int type = Type );
74 QgsTreeWidgetItem( QTreeWidget *view SIP_TRANSFERTHIS, QTreeWidgetItem *after,
int type = Type );
81 explicit QgsTreeWidgetItem( QTreeWidgetItem *parent SIP_TRANSFERTHIS,
int type = Type );
89 QgsTreeWidgetItem( QTreeWidgetItem *parent SIP_TRANSFERTHIS,
const QStringList &strings,
int type = Type );
97 QgsTreeWidgetItem( QTreeWidgetItem *parent SIP_TRANSFERTHIS, QTreeWidgetItem *after,
int type = Type );
107 void setSortData(
int column,
const QVariant &value );
115 QVariant sortData(
int column )
const;
124 void setAlwaysOnTopPriority(
int priority );
132 int alwaysOnTopPriority()
const;
138 bool operator<(
const QTreeWidgetItem &other )
const override;
144 bool operator>=(
const QTreeWidgetItem &other )
const {
return !( *
this < other ); }
150 CustomSortRole = Qt::UserRole + 1001,
151 AlwaysOnTopPriorityRole = Qt::UserRole + 1002,
178 void setData(
int column,
int role,
const QVariant &value )
override;
182 void itemEdited( QTreeWidgetItem *item,
int column );
185 #endif // QGSTREEWIDGETITEM_H