|
libyui-mga-qt
1.1.0
|


Classes | |
| struct | Private |
Public Member Functions | |
| YMGA_QCBTable (YWidget *parent, YTableHeader *header, YCBTableMode checkboxMode) | |
| Constructor. | |
| virtual | ~YMGA_QCBTable () |
| 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... | |
| void | checkItem (YItem *item, bool checked=true) |
| check/uncheck Item from application. 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... | |
| int | checkboxItemColumn () |
| returns which column is managed by checkboxes, if any -1 otherwise | |
Protected Slots | |
| void | slotSelected (QTreeWidgetItem *) |
| Notification that an item is selected (single click or keyboard). | |
| void | slotActivated (QTreeWidgetItem *listViewItem, int column) |
| Notification that an item is activated (double click or keyboard). | |
| void | slotContextMenu (const QPoint &pos) |
| Propagate a context menu selection. More... | |
| void | slotcolumnClicked (QTreeWidgetItem *item, int col) |
Protected Member Functions | |
| void | selectOrigItem (QTreeWidgetItem *listViewItem) |
| Select the original item (the YCBTableItem) 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 |
Definition at line 38 of file YMGA_QCBTable.h.
|
virtual |
|
virtual |
Add multiple items.
Reimplemented for efficiency from YSelectionWidget.
Definition at line 211 of file YMGA_QCBTable.cc.

|
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 295 of file YMGA_QCBTable.cc.

| void YMGA_QCBTable::checkItem | ( | YItem * | item, |
| bool | checked = true |
||
| ) |
check/uncheck Item from application.
Note that item->check(true) does not update the table
Definition at line 261 of file YMGA_QCBTable.cc.

|
virtual |
Delete all items.
Reimplemented from YSelectionWidget.
Definition at line 287 of file YMGA_QCBTable.cc.
|
virtual |
Deselect all items.
Reimplemented from YSelectionWidget.
Definition at line 277 of file YMGA_QCBTable.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 403 of file YMGA_QCBTable.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 393 of file YMGA_QCBTable.cc.
|
virtual |
Select or deselect an item.
Reimplemented from YSelectionWidget.
Definition at line 237 of file YMGA_QCBTable.cc.

|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 383 of file YMGA_QCBTable.cc.
|
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 138 of file YMGA_QCBTable.cc.
|
virtual |
Accept the keyboard focus.
Reimplemented from YWidget.
Definition at line 420 of file YMGA_QCBTable.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 413 of file YMGA_QCBTable.cc.
|
protectedslot |
Propagate a context menu selection.
This will trigger an 'ContextMenuActivated' event if 'notifyContextMenu' is set.
Definition at line 429 of file YMGA_QCBTable.cc.