libyui-qt
2.49.2
|
Enhanced QCheckListItem. More...
#include <QY2ListView.h>
Public Member Functions | |
QY2CheckListItem (QY2ListView *parentListView, const QString &text) | |
Constructor for toplevel items. | |
QY2CheckListItem (QTreeWidgetItem *parentItem, const QString &text) | |
Constructor for deeper level items. | |
virtual | ~QY2CheckListItem () |
Destructor. | |
virtual void | updateStatus () |
Update this item's status. More... | |
virtual void | updateData () |
Update this item's data completely. More... | |
int | serial () const |
Return this item's serial number. More... | |
void | setTextColor (const QColor &col) |
Set the text foreground color for all columns. More... | |
void | setBackgroundColor (const QColor &col) |
Set the text background color for all columns. More... | |
virtual QString | toolTip (int column) |
Returns a tool tip text for a specific column of this item. More... | |
![]() | |
QY2ListViewItem (QY2ListView *parentListView, const QString &text=QString::null) | |
Constructor for toplevel items. | |
QY2ListViewItem (QTreeWidgetItem *parentItem, const QString &text=QString::null) | |
Constructor for deeper level items. | |
virtual | ~QY2ListViewItem () |
Destructor. | |
virtual bool | operator< (const QTreeWidgetItem &other) const |
Comparison function used for sorting the list. More... | |
int | serial () const |
Return this item's serial number. More... | |
Protected Attributes | |
int | _serial |
![]() | |
int | _serial |
QColor | _textColor |
QColor | _backgroundColor |
Enhanced QCheckListItem.
Definition at line 309 of file QY2ListView.h.
|
inline |
Return this item's serial number.
Useful for comparison functions that order by insertion sequence.
Definition at line 351 of file QY2ListView.h.
|
inline |
Set the text background color for all columns.
For more specific purposes reimiplement paintCell().
Definition at line 364 of file QY2ListView.h.
|
inline |
Set the text foreground color for all columns.
For more specific purposes reimiplement paintCell().
Definition at line 357 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 from QY2ListViewItem.
Definition at line 373 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 from QY2ListViewItem.
Definition at line 345 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 from QY2ListViewItem.
Definition at line 337 of file QY2ListView.h.