Skip to content

Commit 59bf3a7

Browse files
SeptimiuVanaAlexandraTrifan
authored andcommitted
plugins/adc: set min number of markers for singletone to 2
Signed-off-by: SeptimiuVana <vana.septimiu@analog.com>
1 parent db13ef0 commit 59bf3a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugins/adc/src/freq/grfftchannelcomponent.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,13 @@ QWidget *GRFFTChannelComponent::createMarkerMenu(QWidget *parent)
265265
connect(markerCb->combo(), qOverload<int>(&QComboBox::currentIndexChanged), this, [=](int idx) {
266266
auto markerType =
267267
static_cast<PlotMarkerController::MarkerTypes>(markerCb->combo()->currentData().toInt());
268+
if(markerType == PlotMarkerController::MC_SINGLETONE) {
269+
markerCnt->setMinValue(2);
270+
if(markerCnt->value() < 2)
271+
markerCnt->setValue(2);
272+
} else {
273+
markerCnt->setMinValue(0);
274+
}
268275
m_fftPlotComponentChannel->markerController()->setFixedHandleVisible(
269276
markerType == PlotMarkerController::MC_FIXED && fixedMarkerEditBtn->onOffswitch()->isChecked());
270277
m_fftPlotComponentChannel->markerController()->setMarkerType(markerType);

0 commit comments

Comments
 (0)