From 21e52e33fb60df9fb8d34a1d80e4397095d7fd8e Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 1 Dec 2017 00:28:47 +0100 Subject: [PATCH] SSB: space sliders ticks more evenly depending on spectrum sample rate --- plugins/channelrx/demodssb/ssbdemodgui.cpp | 8 +++++++- plugins/channeltx/modssb/ssbmodgui.cpp | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/demodssb/ssbdemodgui.cpp b/plugins/channelrx/demodssb/ssbdemodgui.cpp index 5a27c1711..9a26e88a2 100644 --- a/plugins/channelrx/demodssb/ssbdemodgui.cpp +++ b/plugins/channelrx/demodssb/ssbdemodgui.cpp @@ -332,6 +332,8 @@ void SSBDemodGUI::applyBandwidths(bool force) int bw = ui->BW->value(); int lw = ui->lowCut->value(); int bwMax = 480/(1<BW->setTickInterval(tickInterval); + ui->lowCut->setTickInterval(tickInterval); bw = bw < -bwMax ? -bwMax : bw > bwMax ? bwMax : bw; diff --git a/plugins/channeltx/modssb/ssbmodgui.cpp b/plugins/channeltx/modssb/ssbmodgui.cpp index 0526d5f89..2ba54f94c 100644 --- a/plugins/channeltx/modssb/ssbmodgui.cpp +++ b/plugins/channeltx/modssb/ssbmodgui.cpp @@ -458,6 +458,8 @@ void SSBModGUI::applyBandwidths(bool force) int bw = ui->BW->value(); int lw = ui->lowCut->value(); int bwMax = 480/(1<BW->setTickInterval(tickInterval); + ui->lowCut->setTickInterval(tickInterval); bw = bw < -bwMax ? -bwMax : bw > bwMax ? bwMax : bw;