| 94 | }; |
| 95 | |
| 96 | VfoWidget::FlagDir singleVfoFlagDirectionForOverlay( |
| 97 | const SpectrumWidget::SliceOverlay& overlay, |
| 98 | VfoWidget* widget, |
| 99 | int markerX, |
| 100 | int spectrumWidth) |
| 101 | { |
| 102 | if (overlay.mode == "RTTY" || overlay.mode == "DIGL") { |
| 103 | return VfoWidget::ForceRight; |
| 104 | } |
| 105 | |
| 106 | const bool defaultOnLeft = VfoWidget::defaultFlagOnLeftForMode(overlay.mode); |
| 107 | const bool previousOnLeft = widget ? widget->onLeft() : defaultOnLeft; |
| 108 | return VfoWidget::autoDirectionForSingleFlag( |
| 109 | markerX, widget ? widget->width() : 0, spectrumWidth, |
| 110 | defaultOnLeft, previousOnLeft); |
| 111 | } |
| 112 | |
| 113 | VfoWidget::FlagDir deconflictedVfoFlagDirection( |
| 114 | const QVector<VfoPos>& vfos, int index, int panelWidth, int spectrumWidth) |
no test coverage detected