18 : m_importResult(importResult)
34 if (row >= 0 && row < m_importResult->lines.size())
62 const bool showErrorColumn =
64 return showErrorColumn ? 3 : 2;
90 return (col < d.size()) ? QString::number(d[col]) : QString();
95 return (row < m_importResult->qValues.size())
99 return (row < m_importResult->rValues.size())
103 return (row < m_importResult->eValues.size())
Defines class QREDataLoaderResultModel.
QREDataLoaderResultModel(QREDataLoader::ImportResult *importResult)
int rowCount() const override
The row count of the result table.
QString headerTextOfCalculatedColumn(int column) const override
Return the table header text for the given column. For convenience, column starts at 0 for first calc...
QString cellText(ColumnType type, int row, int col) const override
The text of the given cell. For convenience, column starts at 0 for the given column type,...
virtual bool rowIsSkipped(const QModelIndex &index) const
Returns whether the row given in the index is a skipped row. Only override this for performance reaso...
int columnCount(const QModelIndex &parent=QModelIndex()) const override
virtual bool rowHasError(const QModelIndex &index) const
Returns whether the row given in the index contains errors. Only override this for performance reason...
QREDataLoader::ImportResult * m_importResult
Result of the file import. Some of the contained data is only relevant for showing the results in the...
QVector< double > rValues
index is 0-based line number
int maxColumnCount
max found columns in raw data
QVector< QVector< double > > rawValues
index is 0-based line number
QMap< int, ErrorDefinition > calculationErrors
calculation error per line; line is 0-based
QVector< double > eValues
index is 0-based line number
QString errorText(int line) const
ImportSettings importSettings
Settings used for the import.
QVector< double > qValues
index is 0-based line number
QVector< QPair< bool, QString > > lines
bool describes whether line is skipped index is 0-based line number
QMap< DataType, ColumnDefinition > columnDefinitions