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

Method customizedLabelText

src/KDChart/Cartesian/KDChartCartesianAxis.cpp:565–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565QString CartesianAxis::Private::customizedLabelText(const QString &text, Qt::Orientation orientation,
566 qreal value) const
567{
568 // ### like in the old code, using int( value ) as column number...
569 QString withUnits = diagram()->unitPrefix(int(value), orientation, true) + text + diagram()->unitSuffix(int(value), orientation, true);
570 return axis()->customizedLabel(withUnits);
571}
572
573void CartesianAxis::setTitleSpace(qreal axisTitleSpace)
574{

Callers 1

paintCtxMethod · 0.80

Calls 3

unitPrefixMethod · 0.80
unitSuffixMethod · 0.80
customizedLabelMethod · 0.45

Tested by

no test coverage detected