QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsNumericSortTreeWidgetItem Class Reference

QTreeWidgetItem that can sort numerically (as opposed to just lexigraphically) More...

#include <qgsnumericsortlistviewitem.h>

Inheritance diagram for QgsNumericSortTreeWidgetItem:
Inheritance graph
[legend]

Public Member Functions

 QgsNumericSortTreeWidgetItem (QTreeWidget *parent)
 Constructor. More...
 
 QgsNumericSortTreeWidgetItem (QTreeWidgetItem *parent)
 
virtual ~QgsNumericSortTreeWidgetItem ()
 Destructor. More...
 
virtual bool operator< (const QTreeWidgetItem &other) const override
 
- Public Member Functions inherited from QTreeWidgetItem
 QTreeWidgetItem (int type)
 
 QTreeWidgetItem (const QStringList &strings, int type)
 
 QTreeWidgetItem (QTreeWidget *parent, const QStringList &strings, int type)
 
 QTreeWidgetItem (QTreeWidgetItem *parent, QTreeWidgetItem *preceding, int type)
 
 QTreeWidgetItem (const QTreeWidgetItem &other)
 
 QTreeWidgetItem (QTreeWidget *parent, QTreeWidgetItem *preceding, int type)
 
 QTreeWidgetItem (QTreeWidget *parent, int type)
 
 QTreeWidgetItem (QTreeWidgetItem *parent, int type)
 
 QTreeWidgetItem (QTreeWidgetItem *parent, const QStringList &strings, int type)
 
virtual ~QTreeWidgetItem ()
 
void addChild (QTreeWidgetItem *child)
 
void addChildren (const QList< QTreeWidgetItem * > &children)
 
QBrush background (int column) const
 
QColor backgroundColor (int column) const
 
Qt::CheckState checkState (int column) const
 
QTreeWidgetItemchild (int index) const
 
int childCount () const
 
QTreeWidgetItem::ChildIndicatorPolicy childIndicatorPolicy () const
 
virtual QTreeWidgetItemclone () const
 
int columnCount () const
 
virtual QVariant data (int column, int role) const
 
Qt::ItemFlags flags () const
 
QFont font (int column) const
 
QBrush foreground (int column) const
 
QIcon icon (int column) const
 
int indexOfChild (QTreeWidgetItem *child) const
 
void insertChild (int index, QTreeWidgetItem *child)
 
void insertChildren (int index, const QList< QTreeWidgetItem * > &children)
 
bool isDisabled () const
 
bool isExpanded () const
 
bool isFirstColumnSpanned () const
 
bool isHidden () const
 
bool isSelected () const
 
QTreeWidgetItemoperator= (const QTreeWidgetItem &other)
 
QTreeWidgetItemparent () const
 
virtual void read (QDataStream &in)
 
void removeChild (QTreeWidgetItem *child)
 
void setBackground (int column, const QBrush &brush)
 
void setBackgroundColor (int column, const QColor &color)
 
void setCheckState (int column, Qt::CheckState state)
 
void setChildIndicatorPolicy (QTreeWidgetItem::ChildIndicatorPolicy policy)
 
virtual void setData (int column, int role, const QVariant &value)
 
void setDisabled (bool disabled)
 
void setExpanded (bool expand)
 
void setFirstColumnSpanned (bool span)
 
void setFlags (QFlags< Qt::ItemFlag > flags)
 
void setFont (int column, const QFont &font)
 
void setForeground (int column, const QBrush &brush)
 
void setHidden (bool hide)
 
void setIcon (int column, const QIcon &icon)
 
void setSelected (bool select)
 
void setSizeHint (int column, const QSize &size)
 
void setStatusTip (int column, const QString &statusTip)
 
void setText (int column, const QString &text)
 
void setTextAlignment (int column, int alignment)
 
void setTextColor (int column, const QColor &color)
 
void setToolTip (int column, const QString &toolTip)
 
void setWhatsThis (int column, const QString &whatsThis)
 
QSize sizeHint (int column) const
 
void sortChildren (int column, Qt::SortOrder order)
 
QString statusTip (int column) const
 
QTreeWidgetItemtakeChild (int index)
 
QList< QTreeWidgetItem * > takeChildren ()
 
QString text (int column) const
 
int textAlignment (int column) const
 
QColor textColor (int column) const
 
QString toolTip (int column) const
 
QTreeWidgettreeWidget () const
 
int type () const
 
QString whatsThis (int column) const
 
virtual void write (QDataStream &out) const
 

Additional Inherited Members

- Protected Member Functions inherited from QTreeWidgetItem
void emitDataChanged ()
 

Detailed Description

QTreeWidgetItem that can sort numerically (as opposed to just lexigraphically)

This class extends the Qt QTreeWidgetItem concept by reimplementing QTreeWidgetItem::operator< to allow numeric comparisons

TODO: Make it work

Definition at line 36 of file qgsnumericsortlistviewitem.h.

Constructor & Destructor Documentation

◆ QgsNumericSortTreeWidgetItem() [1/2]

QgsNumericSortTreeWidgetItem::QgsNumericSortTreeWidgetItem ( QTreeWidget parent)

Constructor.

Definition at line 23 of file qgsnumericsortlistviewitem.cpp.

◆ QgsNumericSortTreeWidgetItem() [2/2]

QgsNumericSortTreeWidgetItem::QgsNumericSortTreeWidgetItem ( QTreeWidgetItem parent)

Definition at line 29 of file qgsnumericsortlistviewitem.cpp.

◆ ~QgsNumericSortTreeWidgetItem()

QgsNumericSortTreeWidgetItem::~QgsNumericSortTreeWidgetItem ( )
virtual

Destructor.

Definition at line 35 of file qgsnumericsortlistviewitem.cpp.

Member Function Documentation

◆ operator<()

bool QgsNumericSortTreeWidgetItem::operator< ( const QTreeWidgetItem other) const
overridevirtual

Reimplemented from QTreeWidgetItem.

Definition at line 40 of file qgsnumericsortlistviewitem.cpp.


The documentation for this class was generated from the following files: