libyui-qt  2.43.5
QY2CheckListItem Class Reference

#include <QY2ListView.h>

Inheritance diagram for QY2CheckListItem:
Collaboration diagram for QY2CheckListItem:

List of all members.

Public Member Functions

 QY2CheckListItem (QY2ListView *parentListView, const QString &text)
 QY2CheckListItem (QTreeWidgetItem *parentItem, const QString &text)
virtual ~QY2CheckListItem ()
virtual void updateStatus ()
virtual void updateData ()
int serial () const
void setTextColor (const QColor &col)
void setBackgroundColor (const QColor &col)
virtual QString toolTip (int column)

Protected Attributes

int _serial

Detailed Description

Enhanced QCheckListItem

Definition at line 322 of file QY2ListView.h.


Constructor & Destructor Documentation

QY2CheckListItem::QY2CheckListItem ( QY2ListView parentListView,
const QString &  text 
)

Constructor for toplevel items.

Definition at line 446 of file QY2ListView.cc.

Here is the call graph for this function:

QY2CheckListItem::QY2CheckListItem ( QTreeWidgetItem *  parentItem,
const QString &  text 
)

Constructor for deeper level items.

Definition at line 456 of file QY2ListView.cc.

Here is the call graph for this function:

Destructor

Definition at line 470 of file QY2ListView.cc.


Member Function Documentation

int QY2CheckListItem::serial ( ) const [inline]

Return this item's serial number. Useful for comparison functions that order by insertion sequence.

Reimplemented from QY2ListViewItem.

Definition at line 364 of file QY2ListView.h.

void QY2CheckListItem::setBackgroundColor ( const QColor &  col) [inline]

Set the text background color for all columns. For more specific purposes reimiplement paintCell().

Definition at line 377 of file QY2ListView.h.

void QY2CheckListItem::setTextColor ( const QColor &  col) [inline]

Set the text foreground color for all columns. For more specific purposes reimiplement paintCell().

Definition at line 370 of file QY2ListView.h.

virtual QString QY2CheckListItem::toolTip ( int  column) [inline, virtual]

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 386 of file QY2ListView.h.

virtual void QY2CheckListItem::updateData ( ) [inline, virtual]

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 358 of file QY2ListView.h.

virtual void QY2CheckListItem::updateStatus ( ) [inline, virtual]

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 350 of file QY2ListView.h.


Member Data Documentation

int QY2CheckListItem::_serial [protected]

Paint method. Reimplemented from QTreeWidgetItem so different colors can be used.

Reimplemented from QTreeWidgetItem.

Reimplemented from QY2ListViewItem.

Definition at line 395 of file QY2ListView.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables