| 116 | } |
| 117 | |
| 118 | QString formatTnfFrequency(double freqMhz) |
| 119 | { |
| 120 | const long long hz = tnfFrequencyHz(freqMhz); |
| 121 | const int mhzPart = static_cast<int>(hz / 1000000); |
| 122 | const int khzPart = static_cast<int>((hz / 1000) % 1000); |
| 123 | const int hzPart = static_cast<int>(hz % 1000); |
| 124 | return QStringLiteral("%1.%2.%3") |
| 125 | .arg(mhzPart) |
| 126 | .arg(khzPart, 3, 10, QChar('0')) |
| 127 | .arg(hzPart, 3, 10, QChar('0')); |
| 128 | } |
| 129 | |
| 130 | QString formatTnfDepth(int depthDb) |
| 131 | { |
no test coverage detected