ParaView
Signals | Public Member Functions | Protected Member Functions | List of all members
pqExpandableTableView Class Reference

pqExpandableTableView extends pqTableView to add support for the following features: More...

#include <pqExpandableTableView.h>

Inheritance diagram for pqExpandableTableView:
Inheritance graph
[legend]
Collaboration diagram for pqExpandableTableView:
Collaboration graph
[legend]

Signals

void editPastLastRow ()
 signal fired when the user edits past the last row. More...
 

Public Member Functions

 pqExpandableTableView (QWidget *parent=0)
 
virtual ~pqExpandableTableView ()
 
- Public Member Functions inherited from pqTableView
 pqTableView (QWidget *parent=0)
 
virtual ~pqTableView ()
 
void setMaximumRowCountBeforeScrolling (int val)
 Set the maximum number of rows beyond which this view should show a vertical scroll bar. More...
 
int maximumRowCountBeforeScrolling () const
 
void setMinimumRowCount (int val)
 Set the number of rows to use as the minimum to determine the size of the widget when there are fewer or no rows. More...
 
int minimumRowCount () const
 
void setPadding (int val)
 Set the number of rows to always pad the widget with. More...
 
int padding () const
 
virtual void setModel (QAbstractItemModel *model)
 Overridden to ensure the view updates its size as rows are added/removed. More...
 
virtual void setRootIndex (const QModelIndex &index)
 
virtual QSize sizeHint () const
 Overridden to report size as per the state of this pqTableView. More...
 
virtual QSize minimumSizeHint () const
 
virtual bool eventFilter (QObject *watched, QEvent *evt)
 Overridden to handle events from QScrollBar. More...
 

Protected Member Functions

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...
 

Additional Inherited Members

- Properties inherited from pqTableView
int maximumRowCountBeforeScrolling
 Maximum number of rows beyond which this view should show a vertical scroll bar. More...
 
int minimumRowCount
 The number of rows to use as the minimum to determine the size of the widget when there are fewer or no rows. More...
 
int padding
 The number of rows to always pad the widget with. More...
 

Detailed Description

pqExpandableTableView extends pqTableView to add support for the following features:

Definition at line 49 of file pqExpandableTableView.h.

Constructor & Destructor Documentation

◆ pqExpandableTableView()

pqExpandableTableView::pqExpandableTableView ( QWidget *  parent = 0)

◆ ~pqExpandableTableView()

virtual pqExpandableTableView::~pqExpandableTableView ( )
virtual

Member Function Documentation

◆ 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: