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

#include <YQTable.h>

Inheritance diagram for YQTableListViewItem:
Collaboration diagram for YQTableListViewItem:

Public Member Functions

 YQTableListViewItem (YQTable *table, QY2ListView *parent, YTableItem *origItem)
 
 YQTableListViewItem (YQTable *table, YQTableListViewItem *parentItemClone, YTableItem *origItem)
 
YQTabletable () const
 
YTableItem * origItem () const
 
void updateCell (const YTableCell *cell)
 
void updateCells ()
 
virtual QString smartSortKey (int column) const override
 
- Public Member Functions inherited from QY2ListViewItem
 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 toolTip (int column)
 

Protected Member Functions

void init ()
 
void setColAlignment ()
 

Protected Attributes

YQTable_table
 
YTableItem * _origItem
 
- Protected Attributes inherited from QY2ListViewItem
int _serial
 
QColor _textColor
 
QColor _backgroundColor
 

Detailed Description

Visual representation of a YTableItem.

Constructor & Destructor Documentation

◆ YQTableListViewItem() [1/2]

YQTableListViewItem::YQTableListViewItem ( YQTable * table,
QY2ListView * parent,
YTableItem * origItem )

Constructor for toplevel items.

◆ YQTableListViewItem() [2/2]

YQTableListViewItem::YQTableListViewItem ( YQTable * table,
YQTableListViewItem * parentItemClone,
YTableItem * origItem )

Constructor for nested items.

Member Function Documentation

◆ init()

void YQTableListViewItem::init ( )
protected

Common initializations for all constructors

◆ origItem()

YTableItem * YQTableListViewItem::origItem ( ) const
inline

Return the corresponding YTableItem.

◆ setColAlignment()

void YQTableListViewItem::setColAlignment ( )
protected

Set the alignment for each column according to the YTable parent's alignment.

◆ smartSortKey()

QString YQTableListViewItem::smartSortKey ( int column) const
overridevirtual

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

Reimplemented from QY2ListViewItem.

◆ table()

YQTable * YQTableListViewItem::table ( ) const
inline

Return the parent table widget.

◆ updateCell()

void YQTableListViewItem::updateCell ( const YTableCell * cell)

Update this item's display with the content of 'cell'.

◆ updateCells()

void YQTableListViewItem::updateCells ( )

Update all columns of this item with the content of the original item.


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