API Documentation
Loading...
Searching...
No Matches
VehicleTableModel Class Referencefinal

#include <VehicleTable.h>

Inheritance diagram for VehicleTableModel:
[legend]
Collaboration diagram for VehicleTableModel:
[legend]

Public Member Functions

 VehicleTableModel (VehicleDatabase *m_database, QObject *parent=nullptr)
 
 ~VehicleTableModel ()
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 

Protected Attributes

VehicleDatabasem_database
 

Constructor & Destructor Documentation

◆ VehicleTableModel()

VehicleTableModel ( VehicleDatabase * m_database,
QObject * parent = nullptr )

◆ ~VehicleTableModel()

~VehicleTableModel ( )
inline

Member Function Documentation

◆ columnCount()

int columnCount ( const QModelIndex & parent = QModelIndex()) const
override

◆ data()

QVariant data ( const QModelIndex & index,
int role = Qt::DisplayRole ) const
override

◆ headerData()

QVariant headerData ( int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole ) const
override

◆ rowCount()

int rowCount ( const QModelIndex & parent = QModelIndex()) const
override

Member Data Documentation

◆ m_database

VehicleDatabase* m_database
protected

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