From d59c9e5a95a6a0fb5a92d6d2ae6e7b8b944ecbd2 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 29 Mar 2016 16:39:05 +0200 Subject: [PATCH] HackRF input plugin: GUI cosmetic changes --- plugins/samplesource/hackrf/hackrfgui.cpp | 10 +- plugins/samplesource/hackrf/hackrfgui.h | 2 +- plugins/samplesource/hackrf/hackrfgui.ui | 208 +++++++++++++--------- 3 files changed, 128 insertions(+), 92 deletions(-) diff --git a/plugins/samplesource/hackrf/hackrfgui.cpp b/plugins/samplesource/hackrf/hackrfgui.cpp index 783eb1031..2880137d0 100644 --- a/plugins/samplesource/hackrf/hackrfgui.cpp +++ b/plugins/samplesource/hackrf/hackrfgui.cpp @@ -120,8 +120,7 @@ void HackRFGui::displaySettings() ui->biasT->setChecked(m_settings.m_biasT); - ui->decimText->setText(tr("%1").arg(1<decim->setValue(m_settings.m_log2Decim); + ui->decim->setCurrentIndex(m_settings.m_log2Decim); ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos); @@ -236,12 +235,11 @@ void HackRFGui::on_lnaExt_stateChanged(int state) sendSettings(); } -void HackRFGui::on_decim_valueChanged(int value) +void HackRFGui::on_decim_currentIndexChanged(int index) { - if ((value <0) || (value > 6)) + if ((index <0) || (index > 6)) return; - ui->decimText->setText(tr("%1").arg(1< 0 0 - 307 - 270 + 260 + 299 @@ -16,6 +16,12 @@ 0 + + + 260 + 0 + + Sans Serif @@ -29,16 +35,7 @@ 3 - - 2 - - - 2 - - - 2 - - + 2 @@ -160,7 +157,7 @@ DC Offset auto correction - DC Offset + DC @@ -170,17 +167,56 @@ IQ Imbalance auto correction - IQ Imbalance + IQ - Auto corr + Auto + + + + Activate antenna bias tee + + + Qt::RightToLeft + + + Bias T + + + + + + + Extra LNA +14dB + + + Qt::RightToLeft + + + RF Amp + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -215,21 +251,21 @@ - + BBF - + RF bandpas filter - + Qt::Horizontal @@ -245,7 +281,7 @@ - + 3 @@ -256,49 +292,7 @@ - - - - Decimation factor - - - 6 - - - 1 - - - 0 - - - Qt::Horizontal - - - - - - - - 40 - 0 - - - - 1 - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - 3 - - + Fc pos @@ -306,7 +300,64 @@ + + + + 55 + 16777215 + + + + Decimation factor + + + 3 + + + + 1 + + + + + 2 + + + + + 4 + + + + + 8 + + + + + 16 + + + + + 32 + + + + + 64 + + + + + + + + 55 + 16777215 + + Relative position of device center frequency @@ -322,36 +373,23 @@ - Cent + Cen - - - Activate antenna bias tee + + + Qt::Horizontal - - Qt::RightToLeft + + + 40 + 20 + - - Bias T - - - - - - - Extra LNA +14dB - - - Qt::RightToLeft - - - RF Amp - - +