libyui-qt
Loading...
Searching...
No Matches
YQTable Class Reference
Inheritance diagram for YQTable:
Collaboration diagram for YQTable:

Public Member Functions

 YQTable (YWidget *parent, YTableHeader *header, bool multiSelection)
 
virtual ~YQTable ()
 
virtual void setKeepSorting (bool keepSorting)
 
virtual void addItem (YItem *item)
 
virtual void addItems (const YItemCollection &itemCollection)
 
virtual void selectItem (YItem *item, bool selected=true)
 
virtual void deselectAllItems ()
 
virtual void deleteAllItems ()
 
virtual void cellChanged (const YTableCell *cell)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Slots

void slotSelected (QTreeWidgetItem *)
 
void slotSelectionChanged ()
 
void slotActivated (QTreeWidgetItem *)
 
void slotItemExpanded (QTreeWidgetItem *item)
 
void slotItemCollapsed (QTreeWidgetItem *item)
 
void slotContextMenu (const QPoint &pos)
 

Protected Member Functions

void selectOrigItem (QTreeWidgetItem *listViewItem)
 
void addItem (YItem *item, bool batchMode, bool resizeColumnsToContent)
 
void cloneChildItems (YTableItem *parentItem, YQTableListViewItem *parentItemClone)
 

Protected Attributes

QY2ListView_qt_listView
 

Constructor & Destructor Documentation

◆ YQTable()

YQTable::YQTable ( YWidget * parent,
YTableHeader * header,
bool multiSelection )

Constructor.

◆ ~YQTable()

YQTable::~YQTable ( )
virtual

Destructor.

Member Function Documentation

◆ addItem() [1/2]

void YQTable::addItem ( YItem * item)
virtual

Add an item.

Reimplemented from YSelectionWidget.

◆ addItem() [2/2]

void YQTable::addItem ( YItem * item,
bool batchMode,
bool resizeColumnsToContent )
protected

Internal addItem() method that will not do expensive operations in batch mode.

◆ addItems()

void YQTable::addItems ( const YItemCollection & itemCollection)
virtual

Add multiple items.

Reimplemented for efficiency from YSelectionWidget.

◆ cellChanged()

void YQTable::cellChanged ( const YTableCell * cell)
virtual

Notification that a cell (its text and/or its icon) was changed from the outside. Applications are required to call this whenever a table cell is changed after adding the corresponding table item (the row) to the table widget.

Reimplemented from YTable.

◆ cloneChildItems()

void YQTable::cloneChildItems ( YTableItem * parentItem,
YQTableListViewItem * parentItemClone )
protected

Clone (create Qt item counterparts) for all child items of 'parentItem'. Set their Qt item parent to 'parentItemClone'.

◆ deleteAllItems()

void YQTable::deleteAllItems ( )
virtual

Delete all items.

Reimplemented from YSelectionWidget.

◆ deselectAllItems()

void YQTable::deselectAllItems ( )
virtual

Deselect all items.

Reimplemented from YSelectionWidget.

◆ preferredHeight()

int YQTable::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQTable::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ selectItem()

void YQTable::selectItem ( YItem * item,
bool selected = true )
virtual

Select or deselect an item.

Reimplemented from YSelectionWidget.

◆ selectOrigItem()

void YQTable::selectOrigItem ( QTreeWidgetItem * listViewItem)
protected

Select the original item (the YTableItem) that corresponds to the specified listViewItem.

◆ setEnabled()

void YQTable::setEnabled ( bool enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

◆ setKeepSorting()

void YQTable::setKeepSorting ( bool keepSorting)
virtual

Switch between sorting by item insertion order (keepSorting: true) or allowing the user to sort by an arbitrary column (by clicking on the column header).

Reimplemented from YTable.

◆ setKeyboardFocus()

bool YQTable::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

◆ setSize()

void YQTable::setSize ( int newWidth,
int newHeight )
virtual

Set the new size of the widget.

Reimplemented from YWidget.

◆ slotActivated

void YQTable::slotActivated ( QTreeWidgetItem * listViewItem)
protectedslot

Notification that an item is activated (double click or keyboard).

◆ slotContextMenu

void YQTable::slotContextMenu ( const QPoint & pos)
protectedslot

Propagate a context menu selection.

This will trigger a 'ContextMenuActivated' event if 'notifyContextMenu' is set.

◆ slotItemCollapsed

void YQTable::slotItemCollapsed ( QTreeWidgetItem * item)
protectedslot

Propagate an "item collapsed" event to the underlying YTableItem.

◆ slotItemExpanded

void YQTable::slotItemExpanded ( QTreeWidgetItem * item)
protectedslot

Propagate an "item expanded" event to the underlying YTableItem.

◆ slotSelected

void YQTable::slotSelected ( QTreeWidgetItem * listViewItem)
protectedslot

Notification that an item is selected (single click or keyboard).

◆ slotSelectionChanged

void YQTable::slotSelectionChanged ( )
protectedslot

Notification that the item selection changed (relevant for multiSelection mode).


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