Minor UI update: replaced two buttons with single checkbox.

merge-requests/1/head
Elliott Liggett 2021-02-08 23:31:44 -08:00
rodzic a6ccec78a8
commit 0b5559ac62
3 zmienionych plików z 22 dodań i 19 usunięć

Wyświetl plik

@ -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();
}

Wyświetl plik

@ -272,6 +272,8 @@ private slots:
void on_audioSampleRateCombo_currentIndexChanged(QString text);
void on_scopeEnableWFBtn_clicked(bool checked);
private:
Ui::wfmain *ui;
QSettings settings;

Wyświetl plik

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>703</width>
<width>810</width>
<height>582</height>
</rect>
</property>
@ -18,7 +18,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>3</number>
<number>0</number>
</property>
<widget class="QWidget" name="mainTab">
<attribute name="title">
@ -93,16 +93,12 @@
</widget>
</item>
<item>
<widget class="QPushButton" name="startBtn">
<widget class="QCheckBox" name="scopeEnableWFBtn">
<property name="text">
<string>Start WF</string>
<string>Enable WF</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="stopBtn">
<property name="text">
<string>Stop WF</string>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
@ -1159,13 +1155,6 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="aboutQtBtn">
<property name="text">
<string>About Qt</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="saveSettingsBtn">
<property name="text">
@ -1514,8 +1503,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>703</width>
<height>21</height>
<width>810</width>
<height>22</height>
</rect>
</property>
</widget>