Commit 41a9128b authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile against qt5.13

parent c48bf8ed
......@@ -456,12 +456,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()) {
Q_ASSERT(colorVariant.canConvert<QColor>());
}
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<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