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

#include <QY2ListView.h>

Inheritance diagram for QY2ListViewItem:
Collaboration diagram for QY2ListViewItem:

Public Member Functions

 QY2ListViewItem (QY2ListView *parentListView, const QString &text=QString())
 
 QY2ListViewItem (QTreeWidgetItem *parentItem, const QString &text=QString())
 
virtual ~QY2ListViewItem ()
 
virtual void updateStatus ()
 
virtual void updateData ()
 
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
 
virtual QString toolTip (int column)
 

Protected Attributes

int _serial
 
QColor _textColor
 
QColor _backgroundColor
 

Detailed Description

Enhanced QTreeWidgetItem

Constructor & Destructor Documentation

◆ QY2ListViewItem() [1/2]

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

Constructor for toplevel items.

◆ QY2ListViewItem() [2/2]

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

Constructor for deeper level items.

◆ ~QY2ListViewItem()

QY2ListViewItem::~QY2ListViewItem ( )
virtual

Destructor

Member Function Documentation

◆ compare()

bool QY2ListViewItem::compare ( const QString & text1,
const QString & text2 ) const

Compare two string locate-aware. Strings representing integers have special handling.

◆ operator<()

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

Comparison function used for sorting the list. Reimplemented from QTreeWidgetItem

Reimplemented in QY2DiskUsageListItem.

◆ serial()

int QY2ListViewItem::serial ( ) const
inline

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

◆ smartSortKey()

QString QY2ListViewItem::smartSortKey ( int column) const
virtual

The text of the table cell or the sort-key if available.

Reimplemented in YQTableListViewItem.

◆ sortByInsertionSequence()

bool QY2ListViewItem::sortByInsertionSequence ( ) const

Returns 'true' if the sort order should always be the item insertion order, 'false' if the user can change the sort order by clicking on a column header.

◆ toolTip()

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.

◆ updateData()

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 QY2DiskUsageListItem, and QY2CheckListItem.

◆ updateStatus()

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 QY2DiskUsageListItem, and QY2CheckListItem.


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