libyui-qt  2.43.5
 All Classes Functions Variables
QY2ListViewItem Class Reference

#include <QY2ListView.h>

Inheritance diagram for QY2ListViewItem:
Collaboration diagram for QY2ListViewItem:

Public Member Functions

 QY2ListViewItem (QY2ListView *parentListView, const QString &text=QString::null)
 
 QY2ListViewItem (QTreeWidgetItem *parentItem, const QString &text=QString::null)
 
virtual ~QY2ListViewItem ()
 
virtual void updateStatus ()
 
virtual void updateData ()
 
virtual bool operator< (const QTreeWidgetItem &other) const
 
int serial () const
 
virtual QString toolTip (int column)
 

Protected Attributes

int _serial
 
QColor _textColor
 
QColor _backgroundColor
 

Detailed Description

Enhanced QTreeWidgetItem

Definition at line 233 of file QY2ListView.h.

Constructor & Destructor Documentation

QY2ListViewItem::QY2ListViewItem ( QY2ListView parentListView,
const QString &  text = QString::null 
)

Constructor for toplevel items.

Definition at line 367 of file QY2ListView.cc.

Here is the call graph for this function:

QY2ListViewItem::QY2ListViewItem ( QTreeWidgetItem *  parentItem,
const QString &  text = QString::null 
)

Constructor for deeper level items.

Definition at line 375 of file QY2ListView.cc.

Here is the call graph for this function:

QY2ListViewItem::~QY2ListViewItem ( )
virtual

Destructor

Definition at line 388 of file QY2ListView.cc.

Member Function Documentation

bool QY2ListViewItem::operator< ( const QTreeWidgetItem &  other) const
virtual

Comparison function used for sorting the list. Reimplemented from QTreeWidgetItem

Reimplemented in QY2DiskUsageListItem.

Definition at line 395 of file QY2ListView.cc.

Here is the call graph for this function:

int QY2ListViewItem::serial ( ) const
inline

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

Definition at line 281 of file QY2ListView.h.

virtual QString QY2ListViewItem::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 in QY2CheckListItem.

Definition at line 289 of file QY2ListView.h.

virtual void QY2ListViewItem::updateData ( )
inlinevirtual

Update this item's data completely. Triggered by QY2ListView::updateAllItemData(). Derived classes should overwrite this. This default implementation does nothing.

Reimplemented in QY2CheckListItem, and QY2DiskUsageListItem.

Definition at line 269 of file QY2ListView.h.

virtual void QY2ListViewItem::updateStatus ( )
inlinevirtual

Update this item's status. Triggered by QY2ListView::updateAllItemStates(). Derived classes should overwrite this. This default implementation does nothing.

Reimplemented in QY2CheckListItem, and QY2DiskUsageListItem.

Definition at line 261 of file QY2ListView.h.

Member Data Documentation

int QY2ListViewItem::_serial
protected

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

Reimplemented from QTreeWidgetItem.

Definition at line 311 of file QY2ListView.h.


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