Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

QY2CheckListItem Class Reference

#include <QY2ListView.h>

Inheritance diagram for QY2CheckListItem:

YQPkgConflictResolution YQPkgVersion List of all members.

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

Detailed Description

Enhanced QCheckListItem


Constructor & Destructor Documentation

QY2CheckListItem::QY2CheckListItem QY2ListView parentListView,
const QString &  text,
QCheckListItem::Type  type,
bool  sortByInsertionSequence = false
 

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 ).

QY2CheckListItem::QY2CheckListItem QListViewItem *  parentItem,
const QString &  text,
QCheckListItem::Type  type,
bool  sortByInsertionSequence = false
 

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 ).

QY2CheckListItem::QY2CheckListItem QCheckListItem *  parentItem,
const QString &  text,
QCheckListItem::Type  type,
bool  sortByInsertionSequence = false
 

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 ).

QY2CheckListItem::~QY2CheckListItem  )  [virtual]
 

Destructor


Member Function Documentation

int QY2CheckListItem::compare QListViewItem *  other,
int  col,
bool  ascending
const [virtual]
 

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.

void QY2CheckListItem::paintCell QPainter *  painter,
const QColorGroup &  colorGroup,
int  column,
int  width,
int  alignment
[protected, virtual]
 

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

Reimplemented from QListViewItem.

int QY2CheckListItem::serial  )  const [inline]
 

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

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

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

void QY2CheckListItem::setSortByInsertionSequence bool  doit  )  [inline]
 

Set sort policy: 'true' to sort by insertion sequence, 'false' for user sort-by-click on column headers.

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

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

bool QY2CheckListItem::sortByInsertionSequence  )  const [inline]
 

Returns true if this item sorts itself by insertion sequence.

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 in YQPkgVersion.

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.

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.


Member Data Documentation

QColor QY2CheckListItem::_backgroundColor [protected]
 

int QY2CheckListItem::_serial [protected]
 

bool QY2CheckListItem::_sortByInsertionSequence [protected]
 

QColor QY2CheckListItem::_textColor [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Oct 14 19:03:47 2005 for yast2-qt by doxygen 1.3.6