|
libyui-qt
2.52.4
|
Enhanced QTreeWidgetItem. More...
#include <QY2ListView.h>


Public Member Functions | |
| QY2ListViewItem (QY2ListView *parentListView, const QString &text=QString()) | |
| Constructor for toplevel items. | |
| QY2ListViewItem (QTreeWidgetItem *parentItem, const QString &text=QString()) | |
| Constructor for deeper level items. | |
| virtual | ~QY2ListViewItem () |
| Destructor. | |
| virtual void | updateStatus () |
| Update this item's status. More... | |
| virtual void | updateData () |
| Update this item's data completely. More... | |
| virtual bool | operator< (const QTreeWidgetItem &other) const |
| Comparison function used for sorting the list. More... | |
| bool | sortByInsertionSequence () const |
| Returns 'true' if the sort order should always be the item insertion order, 'false' if the user can change the sort order by clicking on a column header. | |
| int | serial () const |
| Return this item's serial number. More... | |
| bool | compare (const QString &text1, const QString &text2) const |
| Compare two string locate-aware. More... | |
| virtual QString | smartSortKey (int column) const |
| The text of the table cell or the sort-key if available. | |
| virtual QString | toolTip (int column) |
| Returns a tool tip text for a specific column of this item. More... | |
Protected Attributes | |
| int | _serial |
| QColor | _textColor |
| QColor | _backgroundColor |
Enhanced QTreeWidgetItem.
Definition at line 233 of file QY2ListView.h.
| bool QY2ListViewItem::compare | ( | const QString & | text1, |
| const QString & | text2 | ||
| ) | const |
Compare two string locate-aware.
Strings representing integers have special handling.
Definition at line 441 of file QY2ListView.cc.
|
virtual |
Comparison function used for sorting the list.
Reimplemented from QTreeWidgetItem
Reimplemented in QY2DiskUsageListItem.
Definition at line 396 of file QY2ListView.cc.

|
inline |
Return this item's serial number.
Useful for comparison functions that order by insertion sequence.
Definition at line 288 of file QY2ListView.h.
|
inlinevirtual |
Returns a tool tip text for a specific column of this item.
'column' is -1 if the mouse pointer is in the tree indentation area.
This default implementation does nothing.
Reimplemented in QY2CheckListItem.
Definition at line 307 of file QY2ListView.h.
|
inlinevirtual |
Update this item's data completely.
Triggered by QY2ListView::updateAllItemData(). Derived classes should overwrite this. This default implementation does nothing.
Reimplemented in QY2CheckListItem, and QY2DiskUsageListItem.
Definition at line 269 of file QY2ListView.h.
|
inlinevirtual |
Update this item's status.
Triggered by QY2ListView::updateAllItemStates(). Derived classes should overwrite this. This default implementation does nothing.
Reimplemented in QY2CheckListItem, and QY2DiskUsageListItem.
Definition at line 261 of file QY2ListView.h.