From 0b5559ac620810d1c1a02654c57a48910ed661af Mon Sep 17 00:00:00 2001 From: Elliott Liggett Date: Mon, 8 Feb 2021 23:31:44 -0800 Subject: [PATCH] Minor UI update: replaced two buttons with single checkbox. --- wfmain.cpp | 12 ++++++++++++ wfmain.h | 2 ++ wfmain.ui | 27 ++++++++------------------- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/wfmain.cpp b/wfmain.cpp index c1387d4..98c42fd 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -1540,6 +1540,16 @@ void wfmain::handlePlotScroll(QWheelEvent *we) ui->freqDial->setValue( ui->freqDial->value() + (steps)*ui->freqDial->singleStep() ); } +void wfmain::on_scopeEnableWFBtn_clicked(bool checked) +{ + if(checked) + { + emit spectOutputEnable(); + } else { + emit spectOutputDisable(); + } +} + void wfmain::on_startBtn_clicked() { emit spectOutputEnable(); @@ -2339,3 +2349,5 @@ void wfmain::on_debugBtn_clicked() //rig->findRigs(); } + + diff --git a/wfmain.h b/wfmain.h index 02d9284..b0c08e1 100644 --- a/wfmain.h +++ b/wfmain.h @@ -272,6 +272,8 @@ private slots: void on_audioSampleRateCombo_currentIndexChanged(QString text); + void on_scopeEnableWFBtn_clicked(bool checked); + private: Ui::wfmain *ui; QSettings settings; diff --git a/wfmain.ui b/wfmain.ui index 1852d93..64ef5f0 100644 --- a/wfmain.ui +++ b/wfmain.ui @@ -6,7 +6,7 @@ 0 0 - 703 + 810 582 @@ -18,7 +18,7 @@ - 3 + 0 @@ -93,16 +93,12 @@ - + - Start WF + Enable WF - - - - - - Stop WF + + true @@ -1159,13 +1155,6 @@ - - - - About Qt - - - @@ -1514,8 +1503,8 @@ 0 0 - 703 - 21 + 810 + 22