#include <QY2ListView.h>
Inheritance diagram for QY2CheckListItem:

Public Member Functions | |
| QY2CheckListItem (QY2ListView *parentListView, const QString &text, QCheckListItem::Type type, bool sortByInsertionSequence=false) | |
| QY2CheckListItem (QListViewItem *parentItem, const QString &text, QCheckListItem::Type type, bool sortByInsertionSequence=false) | |
| QY2CheckListItem (QCheckListItem *parentItem, const QString &text, QCheckListItem::Type type, bool sortByInsertionSequence=false) | |
| virtual | ~QY2CheckListItem () |
| 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 ). |
|
||||||||||||||||||||
|
Constructor for deeper level items for QCheckListItem parents. '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 YQPkgVersion. |
|
||||||||||||||||||||||||
|
Paint method. Reimplemented from QListViewItem so different colors can be used. Reimplemented from QListViewItem. |
|
|
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 YQPkgVersion. |
|
|
Update this item's data completely. Triggered by QY2ListView::updateAllItemData(). Derived classes should overwrite this. This default implementation does nothing. |
|
|
Update this item's status. Triggered by QY2ListView::updateAllItemStates(). Derived classes should overwrite this. This default implementation does nothing. |
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4