From 8443b12937d4aac62d25bd6a835bbfb572ff9d5d Mon Sep 17 00:00:00 2001 From: Johannes Paehr Date: Sun, 29 Dec 2019 17:04:26 +0100 Subject: [PATCH] replaced deprecated colorrole --- timemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();