From fc36372523f59ca10e98ae1c2d8f80da5d2b832c Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Fri, 1 Mar 2019 08:18:34 +0100 Subject: [PATCH] Remove deprecated method --- klipper/autotests/modeltest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klipper/autotests/modeltest.cpp b/klipper/autotests/modeltest.cpp index 49e3399b9..41ee22eca 100644 --- a/klipper/autotests/modeltest.cpp +++ b/klipper/autotests/modeltest.cpp @@ -458,12 +458,12 @@ 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() ) { QVERIFY( colorVariant.canConvert() ); } - colorVariant = model->data ( model->index ( 0, 0 ), Qt::TextColorRole ); + colorVariant = model->data ( model->index ( 0, 0 ), Qt::ForegroundRole ); if ( colorVariant.isValid() ) { QVERIFY( colorVariant.canConvert() ); }