From 09f89e4c384bb39258b52c286febc51d8e75e2eb Mon Sep 17 00:00:00 2001 From: Alexandru Csete Date: Thu, 11 May 2017 23:39:47 +0200 Subject: [PATCH] Switch to Hamradio style frequency display --- resources/news.txt | 1 + src/applications/gqrx/mainwindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/news.txt b/resources/news.txt index 3a12f81b..dabc394c 100644 --- a/resources/news.txt +++ b/resources/news.txt @@ -16,6 +16,7 @@ IMPROVED: Voiceover interface. IMPROVED: Input decimator performance. IMPROVED: Increased frequency limit to 999 GHz (500 GHz LO). + IMPROVED: Hamradio style frequency display. IMPROVED: More short waterfall time spans. diff --git a/src/applications/gqrx/mainwindow.cpp b/src/applications/gqrx/mainwindow.cpp index b095dd26..225ca04c 100644 --- a/src/applications/gqrx/mainwindow.cpp +++ b/src/applications/gqrx/mainwindow.cpp @@ -83,7 +83,7 @@ MainWindow::MainWindow(const QString cfgfile, bool edit_conf, QWidget *parent) : setWindowTitle(QString("Gqrx %1").arg(VERSION)); /* frequency control widget */ - ui->freqCtrl->setup(0, 0, 9999e6, 1, FCTL_UNIT_MHZ); + ui->freqCtrl->setup(0, 0, 9999e6, 1, FCTL_UNIT_NONE); ui->freqCtrl->setFrequency(144500000); d_filter_shape = receiver::FILTER_SHAPE_NORMAL; @@ -745,7 +745,7 @@ void MainWindow::updateFrequencyRange() qint64 start = (qint64)(rx->get_filter_offset()) + d_hw_freq_start + d_lnb_lo; qint64 stop = (qint64)(rx->get_filter_offset()) + d_hw_freq_stop + d_lnb_lo; - ui->freqCtrl->setup(0, start, stop, 1, FCTL_UNIT_MHZ); + ui->freqCtrl->setup(0, start, stop, 1, FCTL_UNIT_NONE); uiDockRxOpt->setRxFreqRange(start, stop); }