JKQTPlotter
an extensive Qt4/Qt5 Plotter framework (including a fast variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies

QAbstractTableModel descendent that allows to view data in a JKQTPDatastore. More...

#include <jkqtpdatastorage.h>

Inheritance diagram for JKQTPDatastoreModel:
Collaboration diagram for JKQTPDatastoreModel:

Public Slots

void reloadModel ()
 

Public Member Functions

 JKQTPDatastoreModel (JKQTPDatastore *datastore, QObject *parent=nullptr)
 
virtual ~JKQTPDatastoreModel () override
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual QVariant data (const QModelIndex &index, int role) const override
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const override
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 

Protected Attributes

JKQTPDatastoredatastore
 

Detailed Description

QAbstractTableModel descendent that allows to view data in a JKQTPDatastore.

See also
JKQTPDatastore

Constructor & Destructor Documentation

◆ JKQTPDatastoreModel()

JKQTPDatastoreModel::JKQTPDatastoreModel ( JKQTPDatastore datastore,
QObject *  parent = nullptr 
)

◆ ~JKQTPDatastoreModel()

virtual JKQTPDatastoreModel::~JKQTPDatastoreModel ( )
overridevirtual

Member Function Documentation

◆ columnCount()

virtual int JKQTPDatastoreModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
overridevirtual

◆ data()

virtual QVariant JKQTPDatastoreModel::data ( const QModelIndex &  index,
int  role 
) const
overridevirtual

◆ flags()

virtual Qt::ItemFlags JKQTPDatastoreModel::flags ( const QModelIndex &  index) const
overridevirtual

◆ headerData()

virtual QVariant JKQTPDatastoreModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
overridevirtual

◆ reloadModel

void JKQTPDatastoreModel::reloadModel ( )
slot

◆ rowCount()

virtual int JKQTPDatastoreModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
overridevirtual

Member Data Documentation

◆ datastore

JKQTPDatastore* JKQTPDatastoreModel::datastore
protected

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