From 2633f6fb6dce9decfea38385aac72e73eead431a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 9 Apr 2019 20:12:48 -0400 Subject: [PATCH] Make the label red, not the whole button. --- widgets/mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index fdefd8edb..a9c45e1b5 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -8698,7 +8698,8 @@ void MainWindow::chkFT4() void MainWindow::on_pbBestSP_clicked() { 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 (""); +// ui->pbBestSP->setChecked(m_bBestSPArmed); + qDebug() << "aa" << m_bBestSPArmed; + if(m_bBestSPArmed and !m_transmitting) ui->pbBestSP->setStyleSheet ("QPushButton{color:red}"); + if(!m_bBestSPArmed) ui->pbBestSP->setStyleSheet (""); }