libyui-qt
 
Loading...
Searching...
No Matches
QY2CheckListItem Class Reference

#include <QY2ListView.h>

Inheritance diagram for QY2CheckListItem:
Collaboration diagram for QY2CheckListItem:

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())
 
 QY2ListViewItem (QTreeWidgetItem *parentItem, const QString &text=QString())
 
virtual ~QY2ListViewItem ()
 
virtual bool operator< (const QTreeWidgetItem &other) const
 
bool sortByInsertionSequence () const
 
int serial () const
 
bool compare (const QString &text1, const QString &text2) const
 
virtual QString smartSortKey (int column) const
 

Protected Attributes

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

Detailed Description

Enhanced QCheckListItem

Constructor & Destructor Documentation

◆ QY2CheckListItem() [1/2]

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

Constructor for toplevel items.

◆ QY2CheckListItem() [2/2]

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

Constructor for deeper level items.

◆ ~QY2CheckListItem()

QY2CheckListItem::~QY2CheckListItem ( )
virtual

Destructor

Member Function Documentation

◆ serial()

int QY2CheckListItem::serial ( ) const
inline

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

◆ setBackgroundColor()

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

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

◆ setTextColor()

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

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

◆ toolTip()

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.

◆ updateData()

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.

◆ updateStatus()

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.


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