replaced deprecated colorrole

This commit is contained in:
2019-12-29 17:04:26 +01:00
parent b4e9fb4c38
commit 8443b12937

View File

@@ -165,7 +165,7 @@ QVariant TimeModel::data(const QModelIndex & index, int role) const {
return QString(""); return QString("");
} }
} }
else if (role == Qt::BackgroundColorRole) { else if (role == Qt::BackgroundRole) {
return getColor(timeData, index.column(), index.row()); return getColor(timeData, index.column(), index.row());
} }
return QVariant(); return QVariant();