MCPcopy Create free account
hub / github.com/KDAB/KDChart / itemRowLabels

Method itemRowLabels

src/KDChart/KDChartAbstractDiagram.cpp:836–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834}
835
836QStringList AbstractDiagram::itemRowLabels() const
837{
838 QStringList ret;
839 if (model()) {
840 // qDebug() << "AbstractDiagram::itemRowLabels(): " << attributesModel()->rowCount(attributesModelRootIndex()) << "entries";
841 const int rowCount = attributesModel()->rowCount(attributesModelRootIndex());
842 for (int i = 0; i < rowCount; ++i) {
843 // qDebug() << "item row label: " << attributesModel()->headerData( i, Qt::Vertical, Qt::DisplayRole ).toString();
844 ret << unitPrefix(i, Qt::Horizontal, true) + attributesModel()->headerData(i, Qt::Vertical, Qt::DisplayRole).toString() + unitSuffix(i, Qt::Horizontal, true);
845 }
846 }
847 return ret;
848}
849
850QStringList AbstractDiagram::datasetLabels() const
851{

Callers 1

TickIteratorMethod · 0.80

Calls 2

rowCountMethod · 0.45
headerDataMethod · 0.45

Tested by

no test coverage detected