Make the "Best S+P" button red when activated.

This commit is contained in:
Joe Taylor 2019-04-09 08:48:13 -04:00
parent 20bed38323
commit 2b42650a73
2 changed files with 18 additions and 9 deletions

View File

@ -1997,11 +1997,6 @@ void MainWindow::keyPressEvent (QKeyEvent * e)
on_stopTxButton_clicked();
abortQSO();
return;
case Qt::Key_X:
if(e->modifiers() & Qt::AltModifier) {
// foxTest();
return;
}
case Qt::Key_E:
if((e->modifiers() & Qt::ShiftModifier) and SpecOp::FOX > m_config.special_op_id()) {
ui->txFirstCheckBox->setChecked(false);
@ -8702,8 +8697,8 @@ void MainWindow::chkFT4()
void MainWindow::on_pbBestSP_clicked()
{
if(!m_transmitting) {
ui->pbBestSP->setStyleSheet ("QPushButton{color:red}");
m_bBestSPArmed=true;
}
m_bBestSPArmed = !m_bBestSPArmed;
ui->pbBestSP->setChecked(m_bBestSPArmed);
// if(m_bBestSPArmed and !m_transmitting) ui->pbBestSP->setStyleSheet ("QPushButton{color:red}");
// if(!m_bBestSPArmed) ui->pbBestSP->setStyleSheet ("");
}

View File

@ -1340,9 +1340,23 @@ QPushButton[state="ok"] {
</item>
<item>
<widget class="QPushButton" name="pbBestSP">
<property name="styleSheet">
<string notr="true">QPushButton:checked {
background-color: red;
border-style: outset;
border-width: 1px;
border-radius: 5px;
border-color: black;
min-width: 5em;
padding: 3px;
}</string>
</property>
<property name="text">
<string>Best S+P</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>