libyui-qt  2.42.4
 All Classes Functions Variables
QY2CheckListItem Class Reference

#include <QY2ListView.h>

Inheritance diagram for QY2CheckListItem:
QY2ListViewItem

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)
 
- Public Member Functions inherited from QY2ListViewItem
 QY2ListViewItem (QY2ListView *parentListView, const QString &text=QString::null)
 
 QY2ListViewItem (QTreeWidgetItem *parentItem, const QString &text=QString::null)
 
virtual ~QY2ListViewItem ()
 
virtual bool operator< (const QTreeWidgetItem &other) const
 
int serial () const
 

Protected Attributes

int _serial
 
- Protected Attributes inherited from QY2ListViewItem
int _serial
 
QColor _textColor
 
QColor _backgroundColor
 

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.

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

Constructor for deeper level items.

Definition at line 456 of file QY2ListView.cc.

QY2CheckListItem::~QY2CheckListItem ( )
virtual

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.

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

virtual void QY2CheckListItem::updateData ( )
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 358 of file QY2ListView.h.

virtual void QY2CheckListItem::updateStatus ( )
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 350 of file QY2ListView.h.


The documentation for this class was generated from the following files: