From 2a97ba420e1aa0c5106b106d635a59cde03f545b Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 5 Dec 2022 12:57:18 -0500 Subject: [PATCH] Removed more unused GUI controls. --- q65w/mainwindow.cpp | 55 -------- q65w/mainwindow.h | 6 - q65w/mainwindow.ui | 297 +------------------------------------------- 3 files changed, 2 insertions(+), 356 deletions(-) diff --git a/q65w/mainwindow.cpp b/q65w/mainwindow.cpp index 05e5211d0..7a5c28e89 100644 --- a/q65w/mainwindow.cpp +++ b/q65w/mainwindow.cpp @@ -79,15 +79,6 @@ MainWindow::MainWindow(QWidget *parent) : ui->actionNormal_Deep_Search->setActionGroup(DepthGroup); ui->actionAggressive_Deep_Search->setActionGroup(DepthGroup); - QButtonGroup* txMsgButtonGroup = new QButtonGroup; - txMsgButtonGroup->addButton(ui->txrb1,1); - txMsgButtonGroup->addButton(ui->txrb2,2); - txMsgButtonGroup->addButton(ui->txrb3,3); - txMsgButtonGroup->addButton(ui->txrb4,4); - txMsgButtonGroup->addButton(ui->txrb5,5); - txMsgButtonGroup->addButton(ui->txrb6,6); - connect(txMsgButtonGroup,SIGNAL(buttonClicked(int)),SLOT(set_ntx(int))); - setWindowTitle (program_title ()); connect(&soundInThread, SIGNAL(readyForFFT(int)), @@ -793,10 +784,6 @@ void MainWindow::keyPressEvent( QKeyEvent *e ) //keyPressEvent case Qt::Key_F4: ui->dxCallEntry->setText(""); ui->dxGridEntry->setText(""); - if(m_kb8rq) { - m_ntx=6; - ui->txrb6->setChecked(true); - } break; case Qt::Key_F6: if(e->modifiers() & Qt::ShiftModifier) { @@ -1571,48 +1558,6 @@ void MainWindow::set_ntx(int n) //set_ntx() m_ntx=n; } -void MainWindow::on_txb1_clicked() //txb1 -{ - m_ntx=1; - ui->txrb1->setChecked(true); - m_restart=true; -} - -void MainWindow::on_txb2_clicked() //txb2 -{ - m_ntx=2; - ui->txrb2->setChecked(true); - m_restart=true; -} - -void MainWindow::on_txb3_clicked() //txb3 -{ - m_ntx=3; - ui->txrb3->setChecked(true); - m_restart=true; -} - -void MainWindow::on_txb4_clicked() //txb4 -{ - m_ntx=4; - ui->txrb4->setChecked(true); - m_restart=true; -} - -void MainWindow::on_txb5_clicked() //txb5 -{ - m_ntx=5; - ui->txrb5->setChecked(true); - m_restart=true; -} - -void MainWindow::on_txb6_clicked() //txb6 -{ - m_ntx=6; - ui->txrb6->setChecked(true); - m_restart=true; -} - void MainWindow::lookup() //lookup() { QString hiscall=ui->dxCallEntry->text().toUpper().trimmed(); diff --git a/q65w/mainwindow.h b/q65w/mainwindow.h index 105b5f010..f067476c3 100644 --- a/q65w/mainwindow.h +++ b/q65w/mainwindow.h @@ -80,13 +80,7 @@ private slots: void decode(); void decodeBusy(bool b); void on_EraseButton_clicked(); - void on_txb1_clicked(); void set_ntx(int n); - void on_txb2_clicked(); - void on_txb3_clicked(); - void on_txb4_clicked(); - void on_txb5_clicked(); - void on_txb6_clicked(); void on_lookupButton_clicked(); void on_addButton_clicked(); void on_dxCallEntry_textChanged(const QString &arg1); diff --git a/q65w/mainwindow.ui b/q65w/mainwindow.ui index fc25173c1..ba778778f 100644 --- a/q65w/mainwindow.ui +++ b/q65w/mainwindow.ui @@ -652,303 +652,10 @@ p, li { white-space: pre-wrap; } - - - - - - 16 - 0 - - - - - 0 - 20 - - - - - 20 - 16777215 - - - - - - - true - - - buttonGroup - - - - - - - - 16 - 0 - - - - - 0 - 20 - - - - - 20 - 16777215 - - - - - - - buttonGroup - - - - - - - - 16 - 0 - - - - - 0 - 20 - - - - - 20 - 16777215 - - - - - - - buttonGroup - - - - - - - - 16 - 0 - - - - - 0 - 20 - - - - - 20 - 16777215 - - - - - - - buttonGroup - - - - - - - - 16 - 0 - - - - - 0 - 20 - - - - - 20 - 16777215 - - - - - - - buttonGroup - - - - - - - - 16 - 0 - - - - - 0 - 20 - - - - - 20 - 16777215 - - - - - - - buttonGroup - - - - + - - - - - - 50 - 20 - - - - - 0 - 16 - - - - - 29 - 20 - - - - Tx1 - - - - - - - - 0 - 16 - - - - - 29 - 20 - - - - Tx2 - - - - - - - - 0 - 16 - - - - - 29 - 20 - - - - Tx3 - - - - - - - - 0 - 16 - - - - - 29 - 20 - - - - Tx4 - - - - - - - - 0 - 16 - - - - - 29 - 20 - - - - Tx5 - - - - - - - - 0 - 16 - - - - - 29 - 20 - - - - Tx6 - - - - +