19#ifndef QGSTREEWIDGETITEM_H 
   20#define QGSTREEWIDGETITEM_H 
   22#include <QTreeWidgetItem> 
  105    void setSortData( 
int column, 
const QVariant &value );
 
  113    QVariant sortData( 
int column ) 
const;
 
  122    void setAlwaysOnTopPriority( 
int priority );
 
  130    int alwaysOnTopPriority() 
const;
 
  136    bool operator<( 
const QTreeWidgetItem &other ) 
const override;
 
  142    bool operator>=( 
const QTreeWidgetItem &other )
 const { 
return !( *
this < other ); }
 
  147      CustomSortRole = Qt::UserRole + 1001,
 
  148      AlwaysOnTopPriorityRole = Qt::UserRole + 1002,
 
 
  172    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.