19 #ifndef QGSTREEWIDGETITEM_H
20 #define QGSTREEWIDGETITEM_H
22 #include <QTreeWidgetItem>
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