Row schema: {path relative to the .inp dir, OLE-Automation datetime sentinel}. An oaDate of 0.0 means "save at end of run" and renders as the QDateTimeEdit special-value text "(end of run)".
More...
#include <hotstartsavesmodel.h>
|
| | HotstartSavesModel (QObject *parent=nullptr) |
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| QVariant | data (const QModelIndex &index, int role) const override |
| |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
| |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
| bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
| |
| bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
| |
| void | clearRows () |
| |
| int | appendRow (const QString &path, double oaDate) |
| |
| bool | swapRows (int a, int b) |
| |
| QString | pathAt (int row) const |
| |
| double | oaDateAt (int row) const |
| |
Row schema: {path relative to the .inp dir, OLE-Automation datetime sentinel}. An oaDate of 0.0 means "save at end of run" and renders as the QDateTimeEdit special-value text "(end of run)".
◆ Column
| Enumerator |
|---|
| ColPath | |
| ColDateTime | |
| ColCount | |
◆ HotstartSavesModel()
| HotstartSavesModel::HotstartSavesModel |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ appendRow()
| int HotstartSavesModel::appendRow |
( |
const QString & |
path, |
|
|
double |
oaDate |
|
) |
| |
◆ clearRows()
| void HotstartSavesModel::clearRows |
( |
| ) |
|
◆ columnCount()
| int HotstartSavesModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
| QVariant HotstartSavesModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ flags()
| Qt::ItemFlags HotstartSavesModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ headerData()
| QVariant HotstartSavesModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ insertRows()
| bool HotstartSavesModel::insertRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
|
override |
◆ oaDateAt()
| double HotstartSavesModel::oaDateAt |
( |
int |
row | ) |
const |
◆ pathAt()
| QString HotstartSavesModel::pathAt |
( |
int |
row | ) |
const |
◆ removeRows()
| bool HotstartSavesModel::removeRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
|
override |
◆ rowCount()
| int HotstartSavesModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
| bool HotstartSavesModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ swapRows()
| bool HotstartSavesModel::swapRows |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
The documentation for this class was generated from the following files: