| 19 | } |
| 20 | |
| 21 | const QString TimeAxis::customizedLabel(const QString &label) const |
| 22 | { |
| 23 | // Here we are free to format the value to whatever we want. As example we |
| 24 | // could also return a scientific notation with something like the following |
| 25 | // both lines; |
| 26 | // const int precision = 2; |
| 27 | // return QString::number(label.toReal(), 'E', precision); |
| 28 | |
| 29 | // Format the time-value to a nice string representation. |
| 30 | const QDateTime dateTime = QDateTime::fromSecsSinceEpoch(label.toDouble() * 3600.0); |
| 31 | return dateTime.date().toString(); |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected