MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / createLabelVector

Method createLabelVector

qcustomplot/qcustomplot.cpp:5738–5745  ·  view source on GitHub ↗

! \internal Returns a vector containing all tick label strings corresponding to the tick coordinates provided in \a ticks. The default implementation calls \ref getTickLabel to generate the respective strings. It is possible but uncommon for QCPAxisTicker subclasses to reimplement this method, as reimplementing \ref getTickLabel often achieves the intended result easier. */

Source from the content-addressed store, hash-verified

5736 reimplementing \ref getTickLabel often achieves the intended result easier.
5737*/
5738QVector<QString> QCPAxisTicker::createLabelVector(const QVector<double> &ticks, const QLocale &locale, QChar formatChar, int precision)
5739{
5740 QVector<QString> result;
5741 result.reserve(ticks.size());
5742 for (int i=0; i<ticks.size(); ++i)
5743 result.append(getTickLabel(ticks.at(i), locale, formatChar, precision));
5744 return result;
5745}
5746
5747/*! \internal
5748

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected