mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-17 05:08:37 -04:00
A better way to set style and color of the hound button.
This commit is contained in:
@@ -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;});
|
||||
|
||||
Reference in New Issue
Block a user