libyui-qt  2.47.1.1
YQTable Class Reference
Inheritance diagram for YQTable:
Collaboration diagram for YQTable:

Public Member Functions

 YQTable (YWidget *parent, YTableHeader *header, bool multiSelection)
 Constructor.
 
virtual ~YQTable ()
 Destructor.
 
virtual void setKeepSorting (bool keepSorting)
 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). More...
 
virtual void addItem (YItem *item)
 Add an item. More...
 
virtual void addItems (const YItemCollection &itemCollection)
 Add multiple items. More...
 
virtual void selectItem (YItem *item, bool selected=true)
 Select or deselect an item. More...
 
virtual void deselectAllItems ()
 Deselect all items. More...
 
virtual void deleteAllItems ()
 Delete all items. More...
 
virtual void cellChanged (const YTableCell *cell)
 Notification that a cell (its text and/or its icon) was changed from the outside. More...
 
virtual void setEnabled (bool enabled)
 Set enabled/disabled state. More...
 
virtual int preferredWidth ()
 Preferred width of the widget. More...
 
virtual int preferredHeight ()
 Preferred height of the widget. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 
virtual bool setKeyboardFocus ()
 Accept the keyboard focus. More...
 

Protected Slots

void slotSelected (QTreeWidgetItem *)
 Notification that an item is selected (single click or keyboard).
 
void slotSelectionChanged ()
 Notification that the item selection changed (relevant for multiSelection mode).
 
void slotActivated (QTreeWidgetItem *)
 Notification that an item is activated (double click or keyboard).
 
void slotContextMenu (const QPoint &pos)
 Propagate a context menu selection. More...
 

Protected Member Functions

void selectOrigItem (QTreeWidgetItem *listViewItem)
 Select the original item (the YTableItem) that corresponds to the specified listViewItem.
 
void addItem (YItem *item, bool batchMode, bool resizeColumnsToContent)
 Internal addItem() method that will not do expensive operations in batch mode.
 

Protected Attributes

QY2ListView_qt_listView
 

Detailed Description

Definition at line 37 of file YQTable.h.

Member Function Documentation

void YQTable::addItem ( YItem *  item)
virtual

Add an item.

Reimplemented from YSelectionWidget.

Definition at line 124 of file YQTable.cc.

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

Add multiple items.

Reimplemented for efficiency from YSelectionWidget.

Definition at line 181 of file YQTable.cc.

Here is the call graph for this function:

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.

Definition at line 253 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::deleteAllItems ( )
virtual

Delete all items.

Reimplemented from YSelectionWidget.

Definition at line 245 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::deselectAllItems ( )
virtual

Deselect all items.

Reimplemented from YSelectionWidget.

Definition at line 235 of file YQTable.cc.

int YQTable::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 373 of file YQTable.cc.

int YQTable::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 363 of file YQTable.cc.

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

Select or deselect an item.

Reimplemented from YSelectionWidget.

Definition at line 208 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 353 of file YQTable.cc.

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.

Definition at line 115 of file YQTable.cc.

Here is the call graph for this function:

bool YQTable::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

Definition at line 390 of file YQTable.cc.

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

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 383 of file YQTable.cc.

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

Propagate a context menu selection.

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

Definition at line 399 of file YQTable.cc.

Here is the call graph for this function:


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