19#ifndef QGSTREEWIDGETITEM_H
20#define QGSTREEWIDGETITEM_H
22#include <QTreeWidgetItem>
106 void setSortData(
int column,
const QVariant &value );
114 QVariant sortData(
int column )
const;
123 void setAlwaysOnTopPriority(
int priority );
131 int alwaysOnTopPriority()
const;
137 bool operator<(
const QTreeWidgetItem &other )
const override;
143 bool operator>=(
const QTreeWidgetItem &other )
const {
return !( *
this < other ); }
149 CustomSortRole = Qt::UserRole + 1001,
150 AlwaysOnTopPriorityRole = Qt::UserRole + 1002,
176 void setData(
int column,
int role,
const QVariant &value )
override;
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.