! \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. */
| 6363 | reimplementing \ref getTickLabel often achieves the intended result easier. |
| 6364 | */ |
| 6365 | QVector<QString> QCPAxisTicker::createLabelVector(const QVector<double> &ticks, const QLocale &locale, QChar formatChar, int precision) |
| 6366 | { |
| 6367 | QVector<QString> result; |
| 6368 | result.reserve(ticks.size()); |
| 6369 | foreach (double tickCoord, ticks) |
| 6370 | result.append(getTickLabel(tickCoord, locale, formatChar, precision)); |
| 6371 | return result; |
| 6372 | } |
| 6373 | |
| 6374 | /*! \internal |
| 6375 |