diff --git a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp index c37dfacf8..dbee2b4d4 100644 --- a/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp +++ b/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp @@ -271,7 +271,8 @@ void SoapySDROutputGui::createCorrectionsControl() else if (m_sampleSink->hasDCAutoCorrection()) // simple checkbox { m_autoDCCorrection = new QCheckBox(this); - m_autoDCCorrection->setText(QString("DC corr")); + m_autoDCCorrection->setText(QString("Auto DC corr")); + m_autoDCCorrection->setToolTip(QString("Automatic hardware DC offset correction")); layout->addWidget(m_autoDCCorrection); connect(m_autoDCCorrection, SIGNAL(toggled(bool)), this, SLOT(autoDCCorrectionChanged(bool))); @@ -294,7 +295,8 @@ void SoapySDROutputGui::createCorrectionsControl() else if (m_sampleSink->hasIQAutoCorrection()) // simple checkbox { m_autoIQCorrection = new QCheckBox(this); - m_autoIQCorrection->setText(QString("IQ corr")); + m_autoIQCorrection->setText(QString("Auto IQ corr")); + m_autoIQCorrection->setToolTip(QString("Automatic hardware IQ imbalance correction")); layout->addWidget(m_autoIQCorrection); connect(m_autoIQCorrection, SIGNAL(toggled(bool)), this, SLOT(autoIQCorrectionChanged(bool))); diff --git a/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp b/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp index 6aea2e265..b8c387d76 100644 --- a/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp +++ b/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp @@ -258,7 +258,8 @@ void SoapySDRInputGui::createCorrectionsControl() if (m_sampleSource->hasDCCorrectionValue()) // complex GUI { m_dcCorrectionGUI = new ComplexFactorGUI(this); - m_dcCorrectionGUI->setLabel(QString("DC")); + m_dcCorrectionGUI->setLabel(QString("DC corr")); + m_dcCorrectionGUI->setToolTip(QString("Hardware DC offset correction")); m_dcCorrectionGUI->setAutomaticEnable(m_sampleSource->hasDCAutoCorrection()); layout->addWidget(m_dcCorrectionGUI); @@ -272,7 +273,8 @@ void SoapySDRInputGui::createCorrectionsControl() else if (m_sampleSource->hasDCAutoCorrection()) // simple checkbox { m_autoDCCorrection = new QCheckBox(this); - m_autoDCCorrection->setText(QString("DC corr")); + m_autoDCCorrection->setText(QString("Auto DC corr")); + m_autoDCCorrection->setToolTip(QString("Automatic hardware DC offset correction")); layout->addWidget(m_autoDCCorrection); connect(m_autoDCCorrection, SIGNAL(toggled(bool)), this, SLOT(autoDCCorrectionChanged(bool))); @@ -281,7 +283,8 @@ void SoapySDRInputGui::createCorrectionsControl() if (m_sampleSource->hasIQCorrectionValue()) // complex GUI { m_iqCorrectionGUI = new ComplexFactorGUI(this); - m_iqCorrectionGUI->setLabel(QString("IQ")); + m_iqCorrectionGUI->setLabel(QString("IQ corr")); + m_iqCorrectionGUI->setToolTip(QString("Hardware IQ imbalance correction")); m_iqCorrectionGUI->setAutomaticEnable(m_sampleSource->hasIQAutoCorrection()); layout->addWidget(m_iqCorrectionGUI); @@ -295,7 +298,8 @@ void SoapySDRInputGui::createCorrectionsControl() else if (m_sampleSource->hasIQAutoCorrection()) // simple checkbox { m_autoIQCorrection = new QCheckBox(this); - m_autoIQCorrection->setText(QString("IQ corr")); + m_autoIQCorrection->setText(QString("Auto IQ corr")); + m_autoIQCorrection->setToolTip(QString("Automatic hardware IQ imbalance correction")); layout->addWidget(m_autoIQCorrection); connect(m_autoIQCorrection, SIGNAL(toggled(bool)), this, SLOT(autoIQCorrectionChanged(bool))); diff --git a/sdrgui/soapygui/complexfactorgui.cpp b/sdrgui/soapygui/complexfactorgui.cpp index c83920301..57edb4e83 100644 --- a/sdrgui/soapygui/complexfactorgui.cpp +++ b/sdrgui/soapygui/complexfactorgui.cpp @@ -70,6 +70,11 @@ void ComplexFactorGUI::setLabel(const QString& text) ui->label->setText(text); } +void ComplexFactorGUI::setToolTip(const QString& text) +{ + ui->label->setToolTip(text); +} + void ComplexFactorGUI::on_automatic_toggled(bool set) { ui->module->setEnabled(!set); @@ -85,4 +90,4 @@ void ComplexFactorGUI::on_module_valueChanged(int value) void ComplexFactorGUI::on_arg_valueChanged(int value) { emit argumentChanged(value); -} \ No newline at end of file +} diff --git a/sdrgui/soapygui/complexfactorgui.h b/sdrgui/soapygui/complexfactorgui.h index d5eb7dfdc..894479d24 100644 --- a/sdrgui/soapygui/complexfactorgui.h +++ b/sdrgui/soapygui/complexfactorgui.h @@ -47,6 +47,7 @@ public: void setAutomaticEnable(bool enable); void setLabel(const QString& text); + void setToolTip(const QString& text); signals: void moduleChanged(double value);