forked from qt-creator/qt-creator
Modeltest: Fix shared files
Replace deprecated and removed enums. Change-Id: I9c374fab7662f181be5fe613d39afff963318315 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user