19#ifndef QGSTREEWIDGETITEM_H
20#define QGSTREEWIDGETITEM_H
26#include <QTreeWidgetItem>
106 void setSortData(
int column,
const QVariant &value );
114 QVariant
sortData(
int column )
const;
137 bool operator<(
const QTreeWidgetItem &other )
const override;
143 bool operator>=(
const QTreeWidgetItem &other )
const {
return !( *
this < other ); }
148 CustomSortRole = Qt::UserRole + 1001,
149 AlwaysOnTopPriorityRole = Qt::UserRole + 1002,
173 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.