18 : m_importResult(importResult)
34 if (row >= 0 && row < m_importResult->lines.size())
63 const bool showErrorColumn =
66 return showErrorColumn ? 3 : 2;
92 return (col < d.size()) ? QString::number(d[col]) : QString();
97 return (row < m_importResult->qValues.size())
101 return (row < m_importResult->rValues.size())
105 return (row < m_importResult->eValues.size())
Defines class QREDataLoaderResultModel.
QREDataLoaderResultModel(QREDataLoader::ImportResult *importResult)
virtual int rowCount() const override
The row count of the result table.
virtual bool rowHasError(int row) const override
Returns whether the row given in the index contains errors. Row counting starts with 0.
virtual QString headerTextOfCalculatedColumn(int column) const override
Return the table header text for the given column.
virtual QString cellText(ColumnType type, int row, int col) const override
The text of the given cell.
virtual bool rowIsSkipped(int row) const override
Returns whether the row given in the index is a skipped row. Row counting starts with 0.
QREDataLoader::ImportResult * m_importResult
virtual int columnCount(ColumnType type) const override
The number of existing columns related to the given column type.
Result of the file import.
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