MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / singleVfoFlagDirectionForOverlay

Function singleVfoFlagDirectionForOverlay

src/gui/SpectrumWidget.cpp:96–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94};
95
96VfoWidget::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
113VfoWidget::FlagDir deconflictedVfoFlagDirection(
114 const QVector<VfoPos>& vfos, int index, int panelWidth, int spectrumWidth)

Callers 2

repositionVfoFlagsMethod · 0.85
paintEventMethod · 0.85

Calls 1

onLeftMethod · 0.80

Tested by

no test coverage detected