libyui-qt  2.52.2
QY2CheckListItem Class Reference

Enhanced QCheckListItem. More...

#include <QY2ListView.h>

Inheritance diagram for QY2CheckListItem:
Collaboration diagram for QY2CheckListItem:

Public Member Functions

 QY2CheckListItem (QY2ListView *parentListView, const QString &text)
 Constructor for toplevel items.
 
 QY2CheckListItem (QTreeWidgetItem *parentItem, const QString &text)
 Constructor for deeper level items.
 
virtual ~QY2CheckListItem ()
 Destructor.
 
virtual void updateStatus ()
 Update this item's status. More...
 
virtual void updateData ()
 Update this item's data completely. More...
 
int serial () const
 Return this item's serial number. More...
 
void setTextColor (const QColor &col)
 Set the text foreground color for all columns. More...
 
void setBackgroundColor (const QColor &col)
 Set the text background color for all columns. More...
 
virtual QString toolTip (int column)
 Returns a tool tip text for a specific column of this item. More...
 
- Public Member Functions inherited from QY2ListViewItem
 QY2ListViewItem (QY2ListView *parentListView, const QString &text=QString())
 Constructor for toplevel items.
 
 QY2ListViewItem (QTreeWidgetItem *parentItem, const QString &text=QString())
 Constructor for deeper level items.
 
virtual ~QY2ListViewItem ()
 Destructor.
 
virtual bool operator< (const QTreeWidgetItem &other) const
 Comparison function used for sorting the list. More...
 
bool 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.
 
int serial () const
 Return this item's serial number. More...
 
bool compare (const QString &text1, const QString &text2) const
 Compare two string locate-aware. More...
 
virtual QString smartSortKey (int column) const
 The text of the table cell or the sort-key if available.
 

Protected Attributes

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

Detailed Description

Enhanced QCheckListItem.

Definition at line 327 of file QY2ListView.h.

Member Function Documentation

◆ serial()

int QY2CheckListItem::serial ( ) const
inline

Return this item's serial number.

Useful for comparison functions that order by insertion sequence.

Definition at line 369 of file QY2ListView.h.

◆ setBackgroundColor()

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

Set the text background color for all columns.

For more specific purposes reimiplement paintCell().

Definition at line 382 of file QY2ListView.h.

◆ setTextColor()

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

Set the text foreground color for all columns.

For more specific purposes reimiplement paintCell().

Definition at line 375 of file QY2ListView.h.

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

Definition at line 391 of file QY2ListView.h.

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

Definition at line 363 of file QY2ListView.h.

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

Definition at line 355 of file QY2ListView.h.


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