Public Member Functions | Protected Slots | Protected Member Functions | List of all members
pqSpreadSheetViewWidget Class Reference

pqSpreadSheetViewWidget is a QTableView subclass that is used by pqSpreadSheetView as the widget showing the data. More...

#include <pqSpreadSheetViewWidget.h>

Inherits QTableView.

Public Member Functions

 pqSpreadSheetViewWidget (QWidget *parent=nullptr)
 
 ~pqSpreadSheetViewWidget () override
 
void setModel (QAbstractItemModel *model) override
 Overridden to ensure that the model is a pqSpreadSheetViewModel. More...
 
pqSpreadSheetViewModelspreadSheetViewModel () const
 Returns the spread sheetview model for this view. More...
 

Protected Slots

void onSortIndicatorChanged (int section, Qt::SortOrder order)
 called when a header section is clicked in order to be sorted. More...
 
void onHeaderDataChanged ()
 called when header data changes. More...
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 Overridden to tell the pqSpreadSheetViewModel about the active viewport. More...
 

Detailed Description

pqSpreadSheetViewWidget is a QTableView subclass that is used by pqSpreadSheetView as the widget showing the data.

Although it's called a 'Widget' it's not a QTableWidget but a QTableView subclass. It works with a pqSpreadSheetViewModel to show raw data delivered by the vtkSMSpreadSheetRepresentationProxy.

pqSpreadSheetViewWidget uses an internal QItemDelegate subclass to handle determining of the active viewport as well as showing multi-component arrays. Users are advised not to change the item delegate on the view.

Definition at line 23 of file pqSpreadSheetViewWidget.h.

Constructor & Destructor Documentation

◆ pqSpreadSheetViewWidget()

pqSpreadSheetViewWidget::pqSpreadSheetViewWidget ( QWidget *  parent = nullptr)

◆ ~pqSpreadSheetViewWidget()

pqSpreadSheetViewWidget::~pqSpreadSheetViewWidget ( )
override

Member Function Documentation

◆ setModel()

void pqSpreadSheetViewWidget::setModel ( QAbstractItemModel *  model)
override

Overridden to ensure that the model is a pqSpreadSheetViewModel.

◆ spreadSheetViewModel()

pqSpreadSheetViewModel* pqSpreadSheetViewWidget::spreadSheetViewModel ( ) const

Returns the spread sheetview model for this view.

◆ onSortIndicatorChanged

void pqSpreadSheetViewWidget::onSortIndicatorChanged ( int  section,
Qt::SortOrder  order 
)
protectedslot

called when a header section is clicked in order to be sorted.

It results in that column being sorted if possible.

◆ onHeaderDataChanged

void pqSpreadSheetViewWidget::onHeaderDataChanged ( )
protectedslot

called when header data changes.

We ensure that internal columns stay hidden.

◆ paintEvent()

void pqSpreadSheetViewWidget::paintEvent ( QPaintEvent *  event)
overrideprotected

Overridden to tell the pqSpreadSheetViewModel about the active viewport.


The documentation for this class was generated from the following file: