|
libyui-qt
2.43.5
|

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 | slotContextMenu (const QPoint &pos) |
Protected Member Functions | |
| void | selectOrigItem (QTreeWidgetItem *listViewItem) |
| void | addItem (YItem *item, bool batchMode, bool resizeColumnsToContent) |
Protected Attributes | |
| QY2ListView * | _qt_listView |
| YQTable::YQTable | ( | YWidget * | parent, |
| YTableHeader * | header, | ||
| bool | multiSelection | ||
| ) |
| YQTable::~YQTable | ( | ) | [virtual] |
Destructor.
Definition at line 109 of file YQTable.cc.
| void YQTable::addItem | ( | YItem * | item | ) | [virtual] |
| void YQTable::addItem | ( | YItem * | item, |
| bool | batchMode, | ||
| bool | resizeColumnsToContent | ||
| ) | [protected] |
Internal addItem() method that will not do expensive operations in batch mode.
Definition at line 134 of file YQTable.cc.

| void YQTable::addItems | ( | const YItemCollection & | itemCollection | ) | [virtual] |
Add multiple items.
Reimplemented for efficiency from YSelectionWidget.
Definition at line 182 of file YQTable.cc.

| 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 254 of file YQTable.cc.

| void YQTable::deleteAllItems | ( | ) | [virtual] |
Delete all items.
Reimplemented from YSelectionWidget.
Definition at line 246 of file YQTable.cc.

| void YQTable::deselectAllItems | ( | ) | [virtual] |
| int YQTable::preferredHeight | ( | ) | [virtual] |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 374 of file YQTable.cc.
| int YQTable::preferredWidth | ( | ) | [virtual] |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 364 of file YQTable.cc.
| void YQTable::selectItem | ( | YItem * | item, |
| bool | selected = true |
||
| ) | [virtual] |
Select or deselect an item.
Reimplemented from YSelectionWidget.
Definition at line 209 of file YQTable.cc.

| void YQTable::selectOrigItem | ( | QTreeWidgetItem * | listViewItem | ) | [protected] |
Select the original item (the YTableItem) that corresponds to the specified listViewItem.
Definition at line 267 of file YQTable.cc.

| void YQTable::setEnabled | ( | bool | enabled | ) | [virtual] |
| 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 116 of file YQTable.cc.

| bool YQTable::setKeyboardFocus | ( | ) | [virtual] |
| void YQTable::setSize | ( | int | newWidth, |
| int | newHeight | ||
| ) | [virtual] |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 384 of file YQTable.cc.
| void YQTable::slotActivated | ( | QTreeWidgetItem * | listViewItem | ) | [protected, slot] |
Notification that an item is activated (double click or keyboard).
Definition at line 341 of file YQTable.cc.

| void YQTable::slotContextMenu | ( | const QPoint & | pos | ) | [protected, slot] |
Propagate a context menu selection
This will trigger an 'ContextMenuActivated' event if 'notifyContextMenu' is set.
Definition at line 400 of file YQTable.cc.

| void YQTable::slotSelected | ( | QTreeWidgetItem * | listViewItem | ) | [protected, slot] |
Notification that an item is selected (single click or keyboard).
Definition at line 280 of file YQTable.cc.

| void YQTable::slotSelectionChanged | ( | ) | [protected, slot] |
Notification that the item selection changed (relevant for multiSelection mode).
Definition at line 306 of file YQTable.cc.
