diff --git a/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp b/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp index d44d268f9..50aa56a2a 100644 --- a/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp +++ b/plugins/samplesink/bladerf2output/bladerf2outputgui.cpp @@ -70,7 +70,6 @@ BladeRF2OutputGui::BladeRF2OutputGui(DeviceUISet *deviceUISet, QWidget* parent) ui->gain->setMaximum(0); ui->gain->setPageStep(1); ui->gain->setSingleStep(1); - ui->transverter->setIQOrderEnabled(false); connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware())); connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); diff --git a/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp b/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp index a7cd42dbd..5707ba083 100644 --- a/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp +++ b/plugins/samplesink/hackrfoutput/hackrfoutputgui.cpp @@ -54,8 +54,6 @@ HackRFOutputGui::HackRFOutputGui(DeviceUISet *deviceUISet, QWidget* parent) : ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow)); ui->sampleRate->setValueRange(8, 1000000U, 20000000U); - ui->transverter->setIQOrderEnabled(false); - connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware())); connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus())); m_statusTimer.start(500); diff --git a/plugins/samplesink/limesdroutput/limesdroutputgui.cpp b/plugins/samplesink/limesdroutput/limesdroutputgui.cpp index 8c0a5a7d7..63c81d527 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputgui.cpp +++ b/plugins/samplesink/limesdroutput/limesdroutputgui.cpp @@ -65,7 +65,6 @@ LimeSDROutputGUI::LimeSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent) : ui->ncoFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold)); ui->channelNumberText->setText(tr("#%1").arg(m_limeSDROutput->getChannelIndex())); - ui->transverter->setIQOrderEnabled(false); if (m_limeSDROutput->getLimeType() == DeviceLimeSDRParams::LimeMini) { diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp index cec48f75a..96f1779c8 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutputgui.cpp @@ -65,7 +65,6 @@ PlutoSDROutputGUI::PlutoSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent) ui->swInterpLabel->setText(QString::fromUtf8("S\u2191")); ui->lpFIRInterpolationLabel->setText(QString::fromUtf8("\u2191")); - ui->transverter->setIQOrderEnabled(false); CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop); connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &))); diff --git a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp index a90561cb1..32f9a3050 100644 --- a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp +++ b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp @@ -64,7 +64,6 @@ SoapySDROutputGui::SoapySDROutputGui(DeviceUISet *deviceUISet, QWidget* parent) uint64_t f_min, f_max; m_sampleSink->getFrequencyRange(f_min, f_max); ui->centerFrequency->setValueRange(7, f_min/1000, f_max/1000); - ui->transverter->setIQOrderEnabled(false); createCorrectionsControl(); createAntennasControl(m_sampleSink->getAntennas()); diff --git a/sdrgui/gui/transverterbutton.cpp b/sdrgui/gui/transverterbutton.cpp index 70ea5c833..ff5d06763 100644 --- a/sdrgui/gui/transverterbutton.cpp +++ b/sdrgui/gui/transverterbutton.cpp @@ -35,7 +35,6 @@ TransverterButton::TransverterButton(QWidget* parent) : void TransverterButton::onClicked() { TransverterDialog transverterDialog(m_deltaFrequency, m_deltaFrequencyActive, m_iqOrder, this); - transverterDialog.setIQSwapEnabled(m_iqOrderEnabled); transverterDialog.exec(); updateState(); } diff --git a/sdrgui/gui/transverterbutton.h b/sdrgui/gui/transverterbutton.h index e80cd419a..a41e2ba1c 100644 --- a/sdrgui/gui/transverterbutton.h +++ b/sdrgui/gui/transverterbutton.h @@ -53,12 +53,6 @@ public: updateState(); } - void setIQOrderEnabled(bool enabled) - { - m_iqOrderEnabled = enabled; - updateState(); - } - private slots: void onClicked(); @@ -66,7 +60,6 @@ private: qint64 m_deltaFrequency; bool m_deltaFrequencyActive; bool m_iqOrder; - bool m_iqOrderEnabled; void updateState(); }; diff --git a/sdrgui/gui/transverterdialog.cpp b/sdrgui/gui/transverterdialog.cpp index 9533ec7d9..425bfa209 100644 --- a/sdrgui/gui/transverterdialog.cpp +++ b/sdrgui/gui/transverterdialog.cpp @@ -42,6 +42,7 @@ TransverterDialog::TransverterDialog(qint64& deltaFrequency, bool& deltaFrequenc ui->deltaFrequencyActive->setChecked(m_deltaFrequencyActive); ui->iqOrder->setEnabled(true); ui->iqOrder->setChecked(m_iqOrder); + ui->iqOrder->setText(m_iqOrder ? "IQ" : "QI"); } TransverterDialog::~TransverterDialog() @@ -49,17 +50,6 @@ TransverterDialog::~TransverterDialog() delete ui; } -void TransverterDialog::setIQSwapEnabled(bool enabled) -{ - ui->iqOrder->setEnabled(enabled); - - if (enabled) { - ui->iqOrder->setChecked(m_iqOrder); - } else { - ui->iqOrder->setChecked(true); - } -} - void TransverterDialog::accept() { m_deltaFrequency = ui->deltaFrequency->getValueNew(); diff --git a/sdrgui/gui/transverterdialog.h b/sdrgui/gui/transverterdialog.h index f0b74a82a..334e9baad 100644 --- a/sdrgui/gui/transverterdialog.h +++ b/sdrgui/gui/transverterdialog.h @@ -36,7 +36,6 @@ class SDRGUI_API TransverterDialog : public QDialog { public: explicit TransverterDialog(qint64& deltaFrequency, bool& deltaFrequencyActive, bool& iqOrder, QWidget* parent = 0); ~TransverterDialog(); - void setIQSwapEnabled(bool enabled); private: Ui::TransverterDialog* ui;