Make the label red, not the whole button.

This commit is contained in:
Joe Taylor 2019-04-09 20:12:48 -04:00
parent 2b42650a73
commit 2633f6fb6d

View File

@ -8698,7 +8698,8 @@ void MainWindow::chkFT4()
void MainWindow::on_pbBestSP_clicked() void MainWindow::on_pbBestSP_clicked()
{ {
m_bBestSPArmed = !m_bBestSPArmed; m_bBestSPArmed = !m_bBestSPArmed;
ui->pbBestSP->setChecked(m_bBestSPArmed); // ui->pbBestSP->setChecked(m_bBestSPArmed);
// if(m_bBestSPArmed and !m_transmitting) ui->pbBestSP->setStyleSheet ("QPushButton{color:red}"); qDebug() << "aa" << m_bBestSPArmed;
// if(!m_bBestSPArmed) ui->pbBestSP->setStyleSheet (""); if(m_bBestSPArmed and !m_transmitting) ui->pbBestSP->setStyleSheet ("QPushButton{color:red}");
if(!m_bBestSPArmed) ui->pbBestSP->setStyleSheet ("");
} }