From a9e29327b78a2521657393c8c0d3b8ebde31a9cb Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 28 Mar 2022 17:45:03 -0400 Subject: [PATCH] Set a warning color when BandChanges is 8 or higher. --- widgets/activeStations.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widgets/activeStations.cpp b/widgets/activeStations.cpp index 9092356ec..b5ecbf737 100644 --- a/widgets/activeStations.cpp +++ b/widgets/activeStations.cpp @@ -116,5 +116,10 @@ void ActiveStations::setScore(int n) void ActiveStations::setBandChanges(int n) { + if(n >= 8) { + ui->bandChanges->setStyleSheet("QLineEdit{background: rgb(255, 64, 64)}"); + } else { + ui->bandChanges->setStyleSheet (""); + } ui->bandChanges->setText(QString::number(n)); }