replaced deprecated colorrole
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user