mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
A better way to set style and color of the hound button.
This commit is contained in:
parent
1d881fcd25
commit
72f3075836
@ -2506,7 +2506,6 @@ void MainWindow::statusChanged()
|
|||||||
ui->txb6->setEnabled(true);
|
ui->txb6->setEnabled(true);
|
||||||
ui->txrb6->setEnabled(true);
|
ui->txrb6->setEnabled(true);
|
||||||
ui->houndButton->setChecked(false);
|
ui->houndButton->setChecked(false);
|
||||||
ui->houndButton->setStyleSheet("");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7025,7 +7024,6 @@ void MainWindow::on_actionFT8_triggered()
|
|||||||
}
|
}
|
||||||
if(SpecOp::HOUND == m_specOp) {
|
if(SpecOp::HOUND == m_specOp) {
|
||||||
ui->houndButton->setChecked(true);
|
ui->houndButton->setChecked(true);
|
||||||
ui->houndButton->setStyleSheet("background-color: #ff0000;");
|
|
||||||
ui->txFirstCheckBox->setChecked(false);
|
ui->txFirstCheckBox->setChecked(false);
|
||||||
ui->txFirstCheckBox->setEnabled(false);
|
ui->txFirstCheckBox->setEnabled(false);
|
||||||
ui->cbAutoSeq->setEnabled(false);
|
ui->cbAutoSeq->setEnabled(false);
|
||||||
@ -7048,7 +7046,6 @@ void MainWindow::on_actionFT8_triggered()
|
|||||||
}
|
}
|
||||||
if(m_specOp != SpecOp::HOUND) {
|
if(m_specOp != SpecOp::HOUND) {
|
||||||
ui->houndButton->setChecked(false);
|
ui->houndButton->setChecked(false);
|
||||||
ui->houndButton->setStyleSheet("");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_specOp=m_config.special_op_id();
|
m_specOp=m_config.special_op_id();
|
||||||
@ -10587,13 +10584,11 @@ QString MainWindow::WSPR_message()
|
|||||||
void MainWindow::on_houndButton_clicked (bool checked)
|
void MainWindow::on_houndButton_clicked (bool checked)
|
||||||
{
|
{
|
||||||
if (checked) {
|
if (checked) {
|
||||||
ui->houndButton->setStyleSheet("background-color: #ff0000;");
|
|
||||||
m_config.setSpecial_Hound();
|
m_config.setSpecial_Hound();
|
||||||
ui->tx1->setVisible(true);
|
ui->tx1->setVisible(true);
|
||||||
ui->tx1->setEnabled(true);
|
ui->tx1->setEnabled(true);
|
||||||
ui->txb1->setEnabled(true);
|
ui->txb1->setEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
ui->houndButton->setStyleSheet("");
|
|
||||||
m_config.setSpecial_None();
|
m_config.setSpecial_None();
|
||||||
keep_frequency = true;
|
keep_frequency = true;
|
||||||
QTimer::singleShot (250, [=] {keep_frequency = false;});
|
QTimer::singleShot (250, [=] {keep_frequency = false;});
|
||||||
|
@ -2901,6 +2901,17 @@ QLabel[oob="true"] {
|
|||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Toggle FT8 hound mode On/Off</string>
|
<string>Toggle FT8 hound mode On/Off</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QPushButton:checked {
|
||||||
|
color: rgb(0, 0, 0);
|
||||||
|
background-color: red;
|
||||||
|
border-style: outset;
|
||||||
|
border-width: 1px;
|
||||||
|
border-radius: 5px;
|
||||||
|
border-color: black;
|
||||||
|
padding: 3px;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>H</string>
|
<string>H</string>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user