Commit 90160837 authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent 1ea5e7ee
......@@ -418,12 +418,12 @@ void ModelTest::checkChildren(const QModelIndex &parent, int currentDepth)
}
// 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(variant.canConvert(QMetaType::QColor));
}
colorVariant = model->data(model->index(0, 0), Qt::TextColorRole);
colorVariant = model->data(model->index(0, 0), Qt::ForegroundRole);
if (colorVariant.isValid()) {
Q_ASSERT(variant.canConvert(QMetaType::QColor));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment