diff --git a/timemodel.cpp b/timemodel.cpp index f2a2ee6..431f484 100644 --- a/timemodel.cpp +++ b/timemodel.cpp @@ -165,7 +165,7 @@ QVariant TimeModel::data(const QModelIndex & index, int role) const { return QString("∞"); } } - else if (role == Qt::BackgroundColorRole) { + else if (role == Qt::BackgroundRole) { return getColor(timeData, index.column(), index.row()); } return QVariant();