a QTableView subclass for ParaView specific customizations. More...
#include <pqTableView.h>
Public Member Functions | |
pqTableView (QWidget *parent=nullptr) | |
~pqTableView () override | |
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 |
void | setModel (QAbstractItemModel *model) override |
Overridden to ensure the view updates its size as rows are added/removed. More... | |
void | setRootIndex (const QModelIndex &index) override |
QSize | sizeHint () const override |
Overridden to report size as per the state of this pqTableView. More... | |
QSize | minimumSizeHint () const override |
bool | eventFilter (QObject *watched, QEvent *evt) override |
Overridden to handle events from QScrollBar. More... | |
void | wheelEvent (QWheelEvent *event) override |
Overridden to eat wheel events unless this->hasFocus(). More... | |
Properties | |
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... | |
a QTableView subclass for ParaView specific customizations.
pqTableView extends QTableView (in the spirit of pqTableView) to support the following:
Definition at line 23 of file pqTableView.h.
pqTableView::pqTableView | ( | QWidget * | parent = nullptr | ) |
|
override |
|
inline |
Set the maximum number of rows beyond which this view should show a vertical scroll bar.
The pqTableView will keep on resizing until maximumRowCountBeforeScrolling row to avoid vertical scrolling. Set this to 0, and this will behave exactly as QTableView. Default is 0.
Definition at line 64 of file pqTableView.h.
|
inline |
Definition at line 65 of file pqTableView.h.
|
inline |
Set the number of rows to use as the minimum to determine the size of the widget when there are fewer or no rows.
Definition at line 71 of file pqTableView.h.
|
inline |
Definition at line 72 of file pqTableView.h.
|
inline |
Set the number of rows to always pad the widget with.
This is used when the actual number of rows is less than or equal to maximumRowCountBeforeScrolling for a non-zero maximumRowCountBeforeScrolling.
Definition at line 80 of file pqTableView.h.
|
inline |
Definition at line 81 of file pqTableView.h.
|
override |
Overridden to ensure the view updates its size as rows are added/removed.
|
override |
|
override |
Overridden to report size as per the state of this pqTableView.
|
override |
|
override |
Overridden to handle events from QScrollBar.
|
override |
Overridden to eat wheel events unless this->hasFocus().
|
readwrite |
Maximum number of rows beyond which this view should show a vertical scroll bar.
The pqTableView will keep on resizing until maximumRowCountBeforeScrolling row to avoid vertical scrolling. Set this to 0, and this will behave exactly as QTableView. Default is 0.
Definition at line 36 of file pqTableView.h.
|
readwrite |
The number of rows to use as the minimum to determine the size of the widget when there are fewer or no rows.
Definition at line 36 of file pqTableView.h.
|
readwrite |
The number of rows to always pad the widget with.
This is used, so long as the total number of rows doesn't exceed the maximumRowCountBeforeScrolling. Note this gets added on top of the padding added, if any, due to minimumRowCount.
Definition at line 42 of file pqTableView.h.