#include <tabulardatatablemodel.h>
◆ TabularDataTableModel()
| TabularDataTableModel::TabularDataTableModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ columnCount()
| int TabularDataTableModel::columnCount |
( |
const QModelIndex & |
parent = {} | ) |
const |
|
override |
◆ columnHeaders()
| QStringList TabularDataTableModel::columnHeaders |
( |
| ) |
const |
|
inline |
Convenience — returns the column header at col, or empty string when out of range. Lets the proxy's query evaluator build a key→value map per row.
◆ data()
| QVariant TabularDataTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ headerData()
| QVariant TabularDataTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ layer()
◆ reload
| void TabularDataTableModel::reload |
( |
| ) |
|
|
slot |
Refresh from the bound layer. Hooked to dataLoaded() so reloads pick up automatically.
◆ rowCount()
| int TabularDataTableModel::rowCount |
( |
const QModelIndex & |
parent = {} | ) |
const |
|
override |
◆ setLayer()
Bind to a tabular layer. Pass nullptr to clear. The model emits modelReset so any attached view rebuilds its layout.
The documentation for this class was generated from the following files: