Derived from QTreeWidgetItem with enhancements for BPS. More...
#include <bpstreewidgetitem.h>
Public Member Functions | |
virtual QVariant | data (int aColumn, int aRole) const |
Overload for special display of numeric values. More... | |
virtual bool | operator< (const QTreeWidgetItem &aOther) const |
Compares the role Bps::RoleSort if set, and Qt::DisplayRole otherwise. More... | |
![]() | |
void | addChild (QTreeWidgetItem *child) |
void | addChildren (const QList< QTreeWidgetItem * > &children) |
QBrush | background (int column) const const |
QColor | backgroundColor (int column) const const |
Qt::CheckState | checkState (int column) const const |
QTreeWidgetItem * | child (int index) const const |
int | childCount () const const |
QTreeWidgetItem::ChildIndicatorPolicy | childIndicatorPolicy () const const |
virtual QTreeWidgetItem * | clone () const const |
int | columnCount () const const |
Qt::ItemFlags | flags () const const |
QFont | font (int column) const const |
QBrush | foreground (int column) const const |
QIcon | icon (int column) const const |
int | indexOfChild (QTreeWidgetItem *child) const const |
void | insertChild (int index, QTreeWidgetItem *child) |
void | insertChildren (int index, const QList< QTreeWidgetItem * > &children) |
bool | isDisabled () const const |
bool | isExpanded () const const |
bool | isFirstColumnSpanned () const const |
bool | isHidden () const const |
bool | isSelected () const const |
QDataStream & | operator<< (QDataStream &out, const QTreeWidgetItem &item) |
QTreeWidgetItem & | operator= (const QTreeWidgetItem &other) |
QDataStream & | operator>> (QDataStream &in, QTreeWidgetItem &item) |
QTreeWidgetItem * | parent () const const |
QTreeWidgetItem (const QStringList &strings, int type) | |
QTreeWidgetItem (const QTreeWidgetItem &other) | |
QTreeWidgetItem (int type) | |
QTreeWidgetItem (QTreeWidget *parent, const QStringList &strings, int type) | |
QTreeWidgetItem (QTreeWidget *parent, int type) | |
QTreeWidgetItem (QTreeWidget *parent, QTreeWidgetItem *preceding, int type) | |
QTreeWidgetItem (QTreeWidgetItem *parent, const QStringList &strings, int type) | |
QTreeWidgetItem (QTreeWidgetItem *parent, int type) | |
QTreeWidgetItem (QTreeWidgetItem *parent, QTreeWidgetItem *preceding, int type) | |
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 (Qt::ItemFlags 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 const |
void | sortChildren (int column, Qt::SortOrder order) |
QString | statusTip (int column) const const |
QTreeWidgetItem * | takeChild (int index) |
QList< QTreeWidgetItem * > | takeChildren () |
QString | text (int column) const const |
int | textAlignment (int column) const const |
QColor | textColor (int column) const const |
QString | toolTip (int column) const const |
QTreeWidget * | treeWidget () const const |
int | type () const const |
QString | whatsThis (int column) const const |
virtual void | write (QDataStream &out) const const |
Additional Inherited Members | |
![]() | |
enum | ChildIndicatorPolicy |
enum | ItemType |
![]() | |
DontShowIndicator | |
DontShowIndicatorWhenChildless | |
ShowIndicator | |
Type | |
UserType | |
![]() | |
void | emitDataChanged () |
Derived from QTreeWidgetItem with enhancements for BPS.
|
virtual |
Overload for special display of numeric values.
Condition:
If condition not met, return value from QTreeWidgetItem::data(). If condition met, the following applies:
aColumn | The items column. |
aRole | The role requested. |
Reimplemented from QTreeWidgetItem.
|
virtual |
Compares the role Bps::RoleSort if set, and Qt::DisplayRole otherwise.
Supports a generic compare that understands several data types, including int, QString, and QDateTime. String compare is done case insensitive and in locale aware mode. If the compared sort column is equal, all other columns starting from 0 up are compared in sequence until a compare returns an unequal result.
aOther | The item to compare with. |
Reimplemented from QTreeWidgetItem.