A better way to set style and color of the hound button.

This commit is contained in:
Uwe Risse
2023-06-04 14:11:55 +02:00
parent 1d881fcd25
commit 72f3075836
2 changed files with 11 additions and 5 deletions
-5
View File
@@ -2506,7 +2506,6 @@ void MainWindow::statusChanged()
ui->txb6->setEnabled(true);
ui->txrb6->setEnabled(true);
ui->houndButton->setChecked(false);
ui->houndButton->setStyleSheet("");
}
}
@@ -7025,7 +7024,6 @@ void MainWindow::on_actionFT8_triggered()
}
if(SpecOp::HOUND == m_specOp) {
ui->houndButton->setChecked(true);
ui->houndButton->setStyleSheet("background-color: #ff0000;");
ui->txFirstCheckBox->setChecked(false);
ui->txFirstCheckBox->setEnabled(false);
ui->cbAutoSeq->setEnabled(false);
@@ -7048,7 +7046,6 @@ void MainWindow::on_actionFT8_triggered()
}
if(m_specOp != SpecOp::HOUND) {
ui->houndButton->setChecked(false);
ui->houndButton->setStyleSheet("");
}
m_specOp=m_config.special_op_id();
@@ -10587,13 +10584,11 @@ QString MainWindow::WSPR_message()
void MainWindow::on_houndButton_clicked (bool checked)
{
if (checked) {
ui->houndButton->setStyleSheet("background-color: #ff0000;");
m_config.setSpecial_Hound();
ui->tx1->setVisible(true);
ui->tx1->setEnabled(true);
ui->txb1->setEnabled(true);
} else {
ui->houndButton->setStyleSheet("");
m_config.setSpecial_None();
keep_frequency = true;
QTimer::singleShot (250, [=] {keep_frequency = false;});