NDEVR
API Documentation
DesignPropertyTableView

A QTableView for showing Model or DesignObject properties. More...

Collaboration diagram for DesignPropertyTableView:
[legend]

Public Member Functions

 DesignPropertyTableView (QWidget *parent=nullptr)
 Constructs a DesignPropertyTableView.
QSize minimumSizeHint () const override
 Returns the minimum size hint for this table view.
DesignTableModelmodel () const
 Returns the underlying DesignTableModel.
void refreshAll ()
 Refreshes all rows and columns in the table view.
Buffer< UUIDselectedIDs () const
 Returns the UUIDs of the currently selected rows.
void setProxyModel (DesignSortFilterProxyModel *model)
 Sets the sort/filter proxy model for this table view.

Protected Member Functions

void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles) override
 Handles data changes to auto-resize affected columns.
void rowsInserted (const QModelIndex &parent, int start, int end) override
 Handles row insertions to auto-resize columns.

Protected Attributes

DesignSortFilterProxyModelm_table_model
 The proxy model providing sorted/filtered data.

Detailed Description

A QTableView for showing Model or DesignObject properties.


Definition at line 90 of file DesignPropertyTable.h.

Constructor & Destructor Documentation

◆ DesignPropertyTableView()

DesignPropertyTableView::DesignPropertyTableView ( QWidget * parent = nullptr)
explicit

Constructs a DesignPropertyTableView.

Parameters
[in]parentThe parent widget.

Member Function Documentation

◆ dataChanged()

void DesignPropertyTableView::dataChanged ( const QModelIndex & topLeft,
const QModelIndex & bottomRight,
const QVector< int > & roles )
overrideprotected

Handles data changes to auto-resize affected columns.

Parameters
[in]topLeftThe top-left index of the changed range.
[in]bottomRightThe bottom-right index of the changed range.
[in]rolesThe roles that changed.

◆ minimumSizeHint()

QSize DesignPropertyTableView::minimumSizeHint ( ) const
override

Returns the minimum size hint for this table view.

Returns
The minimum QSize.

◆ model()

DesignTableModel * DesignPropertyTableView::model ( ) const
inlinenodiscard

Returns the underlying DesignTableModel.

Returns
A pointer to the DesignTableModel.

Definition at line 107 of file DesignPropertyTable.h.

References m_table_model.

Referenced by setProxyModel().

◆ rowsInserted()

void DesignPropertyTableView::rowsInserted ( const QModelIndex & parent,
int start,
int end )
overrideprotected

Handles row insertions to auto-resize columns.

Parameters
[in]parentThe parent index.
[in]startThe first inserted row.
[in]endThe last inserted row.

◆ selectedIDs()

Buffer< UUID > DesignPropertyTableView::selectedIDs ( ) const

Returns the UUIDs of the currently selected rows.

Returns
A buffer of selected UUIDs.

◆ setProxyModel()

void DesignPropertyTableView::setProxyModel ( DesignSortFilterProxyModel * model)

Sets the sort/filter proxy model for this table view.

Parameters
[in]modelThe proxy model to use.

References model().


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