7 #include "FittingModel.h" 11 const int COLUMN_POLYNOMIAL_TERMS = 1;
17 FittingModel::~FittingModel()
28 if (role == Qt::BackgroundRole &&
29 index.row() == rowCount() - 1 &&
30 index.column() == COLUMN_POLYNOMIAL_TERMS) {
33 return QVariant::fromValue (QColor (Qt::lightGray));
37 return QStandardItemModel::data (index, role);
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Override for special processing.
FittingModel()
Single constructor.