2019-05-24 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdgpimon(1) that caused GPIO status
	to fail to be displayed in the status widgets.
This commit is contained in:
Fred Gleason 2019-05-24 13:57:19 -04:00
parent 4a59a80fe2
commit f6fa420cfd
3 changed files with 10 additions and 2 deletions

View File

@ -18693,3 +18693,6 @@
* Added an 'RDSocketStrings()' function in
'lib/rdsocketstrings.[cpp|h]'.
* Fixed a bug in 'RDLiveWire' that caused false watchdog triggers.
2019-05-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdgpimon(1) that caused GPIO status
to fail to be displayed in the status widgets.

View File

@ -41,6 +41,7 @@ GpiLabel::GpiLabel(QWidget *parent)
gpi_line_label->setFont(line_font);
gpi_line_label->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
gpi_line_label->setPalette(Qt::gray);
gpi_line_label->setStyleSheet("background-color:"+QColor(Qt::gray).name());
//
// On Cart Label
@ -98,9 +99,13 @@ void GpiLabel::setState(bool state)
{
if(state) {
gpi_line_label->setPalette(Qt::green);
gpi_line_label->
setStyleSheet("background-color:"+QColor(Qt::green).name());
}
else {
gpi_line_label->setPalette(Qt::gray);
gpi_line_label->
setStyleSheet("background-color:"+QColor(Qt::gray).name());
}
}