From ea4e83feada9c86cfa7aec249623196375da43a2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Oct 2020 14:41:52 -0700 Subject: [PATCH] cleanup: fix deprecated role Signed-off-by: Dirk Hohndel --- desktop-widgets/divelogimportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/divelogimportdialog.cpp b/desktop-widgets/divelogimportdialog.cpp index fc7e7d81e..9876c3550 100644 --- a/desktop-widgets/divelogimportdialog.cpp +++ b/desktop-widgets/divelogimportdialog.cpp @@ -270,7 +270,7 @@ QVariant ColumnNameResult::data(const QModelIndex &index, int role) const { if (!index.isValid()) return QVariant(); - if (role == Qt::BackgroundColorRole) + if (role == Qt::BackgroundRole) if (index.row() == 0) return QVariant(AIR_BLUE_TRANS);