| 163 | } |
| 164 | |
| 165 | QString BitratePlotModel::formatValue(Axis axis, double value) const |
| 166 | { |
| 167 | if (axis == Axis::X) |
| 168 | { |
| 169 | // The value is a timestamp. We could convert this to a time but for now a total value will do |
| 170 | return QString("%1").arg(value); |
| 171 | } |
| 172 | else |
| 173 | // The value is bytes |
| 174 | return functions::formatDataSize(value, false); |
| 175 | } |
| 176 | |
| 177 | void BitratePlotModel::addBitratePoint(int streamIndex, BitrateEntry &entry) |
| 178 | { |
nothing calls this directly
no test coverage detected