data model with all plots ina JKQTBasePlotter (+ allows to switch them visible/invisible)
More...
#include <jkqtpgraphsmodel.h>
|
| JKQTPGraphsModel (JKQTBasePlotter *parent) |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
|
data model with all plots ina JKQTBasePlotter (+ allows to switch them visible/invisible)
This class is derived from QAbstractTableModel and implements a model where some properties are editable. It is designed to be used together with e.g. QListView.
◆ JKQTPGraphsModel()
◆ columnCount()
int JKQTPGraphsModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant JKQTPGraphsModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags JKQTPGraphsModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ plotUpdated
void JKQTPGraphsModel::plotUpdated |
( |
| ) |
|
|
slot |
◆ rowCount()
int JKQTPGraphsModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
bool JKQTPGraphsModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ m_plotter
The documentation for this class was generated from the following file: