| 149 | } |
| 150 | |
| 151 | QString HRDPlotModel::formatValue(Axis axis, double value) const |
| 152 | { |
| 153 | if (axis == Axis::X) |
| 154 | { |
| 155 | const auto timeScale = 1000; // This results in the time being in ms |
| 156 | const auto milliseconds = int(value * timeScale); |
| 157 | return QTime(0, 0).addMSecs(milliseconds).toString("hh:mm:ss.zzz"); |
| 158 | } |
| 159 | else |
| 160 | // The value is bytes |
| 161 | return functions::formatDataSize(value, false); |
| 162 | } |
| 163 | |
| 164 | void HRDPlotModel::addHRDEntry(HRDPlotModel::HRDEntry &entry) |
| 165 | { |
no test coverage detected