pqExpandableTableView extends pqTableView to add support for the following features:
More...
#include <pqExpandableTableView.h>
|
virtual QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) |
| Working together with logic in closeEditor(). More...
|
|
virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
| Overridden to set MoveToNextEditableItem so that moveCursor() can skip non-editable items. More...
|
|
virtual void | keyPressEvent (QKeyEvent *event) |
| Overridden to capture Ctrl-V for pasting table data into the table. More...
|
|
pqExpandableTableView extends pqTableView to add support for the following features:
- Expand/Grow table: If the user edits past the last item the view will fire a signal (editPastLastRow()) enabling observer to add new row to the table.
- Skip non-editable items: When editing, in a QTableView one can hit tab to edit the next item. However, if the next item is not editable, the editing is stopped. pqExpandableTableView makes it possible to skip non-editable items and continue with the editing.
Definition at line 49 of file pqExpandableTableView.h.
§ pqExpandableTableView()
pqExpandableTableView::pqExpandableTableView |
( |
QWidget * |
parent = 0 | ) |
|
§ ~pqExpandableTableView()
virtual pqExpandableTableView::~pqExpandableTableView |
( |
| ) |
|
|
virtual |
§ editPastLastRow
void pqExpandableTableView::editPastLastRow |
( |
| ) |
|
|
signal |
signal fired when the user edits past the last row.
Handlers can add a new row to the table, if needed, to allow used to edit expandable tables with ease.
§ moveCursor()
virtual QModelIndex pqExpandableTableView::moveCursor |
( |
CursorAction |
cursorAction, |
|
|
Qt::KeyboardModifiers |
modifiers |
|
) |
| |
|
protectedvirtual |
Working together with logic in closeEditor().
This methods makes it possible to skip past non-editable items.
§ closeEditor()
virtual void pqExpandableTableView::closeEditor |
( |
QWidget * |
editor, |
|
|
QAbstractItemDelegate::EndEditHint |
hint |
|
) |
| |
|
protectedvirtual |
Overridden to set MoveToNextEditableItem so that moveCursor() can skip non-editable items.
Also if moved past the last rows/last column, this will fire the editPastLastRow() signal.
§ keyPressEvent()
virtual void pqExpandableTableView::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protectedvirtual |
Overridden to capture Ctrl-V for pasting table data into the table.
The documentation for this class was generated from the following file: