From 075ebb932ea59cd29d42f98952c8091c1f6862d0 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 1 Feb 2022 12:03:15 +0100 Subject: [PATCH] Modeltest: Fix shared files Replace deprecated and removed enums. Change-Id: I9c374fab7662f181be5fe613d39afff963318315 Reviewed-by: Christian Kandeler --- src/shared/modeltest/modeltest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/modeltest/modeltest.cpp b/src/shared/modeltest/modeltest.cpp index 75000e9f3b9..c44b50ab34f 100644 --- a/src/shared/modeltest/modeltest.cpp +++ b/src/shared/modeltest/modeltest.cpp @@ -433,11 +433,11 @@ void ModelTest::data() } // General Purpose roles that should return a QColor - QVariant colorVariant = model->data(model->index(0, 0), Qt::BackgroundColorRole); + QVariant colorVariant = model->data(model->index(0, 0), Qt::BackgroundRole); if (colorVariant.isValid()) Q_ASSERT(colorVariant.canConvert(QVariant::Color)); - colorVariant = model->data(model->index(0, 0), Qt::TextColorRole); + colorVariant = model->data(model->index(0, 0), Qt::ForegroundRole); if (colorVariant.isValid()) Q_ASSERT(colorVariant.canConvert(QVariant::Color));