#include <QY2ListView.h>
Inheritance diagram for QY2ListViewItem:
Public Member Functions | |
QY2ListViewItem (QY2ListView *parentListView, const QString &text=QString::null, bool sortByInsertionSequence=false) | |
QY2ListViewItem (QListViewItem *parentItem, const QString &text=QString::null, bool sortByInsertionSequence=false) | |
virtual | ~QY2ListViewItem () |
virtual void | updateStatus () |
virtual void | updateData () |
virtual int | compare (QListViewItem *other, int col, bool ascending) const |
int | serial () const |
bool | sortByInsertionSequence () const |
void | setSortByInsertionSequence (bool doit) |
void | setTextColor (const QColor &col) |
void | setBackgroundColor (const QColor &col) |
virtual QString | toolTip (int column) |
Protected Member Functions | |
virtual void | paintCell (QPainter *painter, const QColorGroup &colorGroup, int column, int width, int alignment) |
Protected Attributes | |
int | _serial |
bool | _sortByInsertionSequence |
QColor | _textColor |
QColor | _backgroundColor |
|
Constructor for toplevel items. 'sortByInsertionSequence' indicates if this item keeps the insertion order ( true ) or leaves sorting to the user ( false - sort-by-click on column headers ). |
|
Constructor for deeper level items. 'sortByInsertionSequence' indicates if this item keeps the insertion order ( true ) or leaves sorting to the user ( false - sort-by-click on column headers ). |
|
Destructor |
|
Comparison function used for sorting the list. Returns: -1 if this < other 0 if this == other +1 if this > other Reimplemented from QListViewItem Reimplemented in QY2DiskUsageListItem, YQPkgListItem, YQPkgObjListItem, YQPkgSelListItem, and YQPkgYouPatchListItem. |
|
Paint method. Reimplemented from QListViewItem so different colors can be used. Reimplemented from QListViewItem. Reimplemented in QY2DiskUsageListItem, YQPkgConflict, and YQPkgListItem. |
|
Return this item's serial number. Useful for comparison functions that order by insertion sequence. |
|
Set the text background color for all columns. For more specific purposes reimiplement paintCell(). |
|
Set sort policy: 'true' to sort by insertion sequence, 'false' for user sort-by-click on column headers. |
|
Set the text foreground color for all columns. For more specific purposes reimiplement paintCell(). |
|
Returns true if this item sorts itself by insertion sequence. |
|
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 YQPkgListItem, YQPkgObjListItem, and YQPkgYouPatchListItem. |
|
Update this item's data completely. Triggered by QY2ListView::updateAllItemData(). Derived classes should overwrite this. This default implementation does nothing. Reimplemented in QY2DiskUsageListItem, YQPkgListItem, and YQPkgObjListItem. |
|
Update this item's status. Triggered by QY2ListView::updateAllItemStates(). Derived classes should overwrite this. This default implementation does nothing. Reimplemented in QY2DiskUsageListItem, and YQPkgObjListItem. |
|
|
|
|
|
|
|
|