![]() |
NDEVR
API Documentation
|
A QTableView subclass that displays vehicle database records with sort and filter support. More...
Public Member Functions | |
| VehicleTableView (VehicleDatabase *database, QWidget *parent=nullptr) | |
| Constructs the table view for the given vehicle database. | |
| VehicleTableFilterProxyModel * | filter () const |
| Returns the filter proxy model used by this view. | |
| uint04 | recordIndexFromSelection (const QModelIndex &selection_index) const |
| Converts a proxy model selection index to the underlying database record index. | |
Protected Attributes | |
| VehicleTableFilterProxyModel * | m_filter |
| The sort/filter proxy model. | |
| VehicleTableModel * | m_model |
| The underlying table model. | |
A QTableView subclass that displays vehicle database records with sort and filter support.
Definition at line 85 of file VehicleTable.h.
|
explicit |
Constructs the table view for the given vehicle database.
| [in] | database | The vehicle database to display. |
| [in] | parent | Optional parent widget. |
|
inlinenodiscard |
Returns the filter proxy model used by this view.
Definition at line 94 of file VehicleTable.h.
References m_filter.
| uint04 VehicleTableView::recordIndexFromSelection | ( | const QModelIndex & | selection_index | ) | const |
Converts a proxy model selection index to the underlying database record index.
| [in] | selection_index | The proxy model index from the selection. |