EHM DAL 0.2.5
Data abstraction layer for Eastside Hockey Manager
|
Public Types | |
enum class | AbstractTableModelType : quint8 { AbstractClass , GameTable , GameChildTable , GameChildTreeTable } |
Public Member Functions | |
AbstractBaseModel (ehm_dal::column_data::ColumnData *column_data=new ehm_dal::column_data::ColumnData(), QObject *parent=nullptr) | |
ehm_dal::column_data::ColumnData * | columnData () |
Returns the ehm_dal::column_data::ColumnData . | |
ehm_dal::column_data::ColumnData * | constColumnData () const |
qint32 | columnCount (const QModelIndex &parent=QModelIndex()) const override |
Returns the number of columns in the table. | |
qint32 | size () const |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
Returns the item flags for the given index. | |
QVariant | headerData (qint32 section, Qt::Orientation orientation, qint32 role=Qt::DisplayRole) const override |
Returns the data for the given role and section in the header with the specified orientation. For horizontal headers, the section number corresponds to the column number. Similarly, for vertical headers, the section number corresponds to the row number. | |
std::unique_ptr< QSortFilterProxyModel > | proxy () |
virtual QString | modelName () const |
virtual constexpr AbstractTableModelType | modelType () const |
Protected Member Functions | |
bool | emitModifiedColumns (const qint32 row, const std::vector< qint32 > &modified_columns, const QList< qint32 > &modified_roles=QList< qint32 >()) |
|
override |
Returns the number of columns in the table.
parent | Not used |
ehm_dal::column_data::ColumnData * ehm_dal::tables::AbstractBaseModel::columnData | ( | ) |
Returns the ehm_dal::column_data::ColumnData
.
ehm_dal::column_data::ColumnData
.
|
override |
Returns the item flags for the given index.
index | Index of the selected row and column |
Qt::ItemFlags
.
|
override |
Returns the data for the given role and section in the header with the specified orientation. For horizontal headers, the section number corresponds to the column number. Similarly, for vertical headers, the section number corresponds to the row number.
section | Row or column, depending on orientation |
orientation | Horizontal or vertical orientation |
role | Item data role. Typically Qt::DisplayRole |