| 59 | } |
| 60 | |
| 61 | void SliceModel::tuneAndRecenter(double mhz) |
| 62 | { |
| 63 | if (m_locked) { |
| 64 | notifyTuneBlockedByLock(); |
| 65 | return; |
| 66 | } |
| 67 | if (qFuzzyCompare(m_frequency, mhz)) return; |
| 68 | m_frequency = mhz; |
| 69 | // Without autopan=0, the radio recenters the pan on the new frequency. |
| 70 | // Used for band changes where recentering is desired. |
| 71 | sendCommand(QString("slice tune %1 %2").arg(m_id).arg(mhz, 0, 'f', 6)); |
| 72 | emit frequencyChanged(mhz); |
| 73 | } |
| 74 | |
| 75 | void SliceModel::setMode(const QString& mode) |
| 76 | { |
no test coverage detected