Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 24, 2017
1 parent 00b0271 commit 9816938
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui/qgstreewidgetitem.h
Expand Up @@ -117,8 +117,16 @@ class GUI_EXPORT QgsTreeWidgetItem : public QTreeWidgetItem
*/
int alwaysOnTopPriority() const;

/**
* Returns true if this item should appear before another item when sorting
* a list of items.
*/
virtual bool operator<( const QTreeWidgetItem &other ) const override;

/**
* Returns true if this item should appear after another item when sorting
* a list of items.
*/
bool operator>=( const QTreeWidgetItem &other ) const { return !( *this < other ); }

private:
Expand Down

0 comments on commit 9816938

Please sign in to comment.