added color

This commit is contained in:
moerp
2021-05-29 19:11:24 +02:00
parent 4ebda211eb
commit 4481431794
2 changed files with 8 additions and 7 deletions

View File

@ -33,9 +33,10 @@ QVariant SQMTableModel::data(const QModelIndex &index, int role) const {
break;
case Qt::ForegroundRole:
if (changedHere.isValid()) {
if (row >= changedHere.row() && col >= changedHere.column()) {
result = QColor(Qt::red);
if ((row > changedHere.row() || (col >= changedHere.column() && row == changedHere.row())) && (col != 0 || changedHere.column() == 0)) {
result = QColor(Qt::red);
}
}
break;