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;
bool operator<(const QVariant &v1, const QVariant &v2)
Compares two QVariant values and returns whether the first is less than the second.