Commit a0c8fb41 authored by Volker Krause's avatar Volker Krause
Browse files

QtCharts treats <empty> as rich text

parent 4458f614
......@@ -97,7 +97,7 @@ QVariant CategoryAggregationModel::headerData(int section, Qt::Orientation orien
if (role == Qt::DisplayRole) {
const auto cat = m_categories.at(section - 1);
if (cat.isEmpty())
return tr("<empty>");
return tr("[empty]");
return cat;
}
}
......
......@@ -93,7 +93,7 @@ QVariant RatioSetAggregationModel::headerData(int section, Qt::Orientation orien
if (role == Qt::DisplayRole) {
const auto cat = m_categories.at(section - 1);
if (cat.isEmpty())
return tr("<empty>");
return tr("[empty]");
return cat;
}
}
......
......@@ -95,7 +95,7 @@ private slots:
srcModel.setSamples(samples);
QCOMPARE(model.columnCount(), 4);
QCOMPARE(model.headerData(1, Qt::Horizontal, Qt::DisplayRole).toString(), QLatin1String("<empty>"));
QCOMPARE(model.headerData(1, Qt::Horizontal, Qt::DisplayRole).toString(), QLatin1String("[empty]"));
QCOMPARE(model.headerData(2, Qt::Horizontal, Qt::DisplayRole).toString(), QLatin1String("1.0"));
QCOMPARE(model.headerData(3, Qt::Horizontal, Qt::DisplayRole).toString(), QLatin1String("1.9.84"));
......
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