mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-27 06:36:37 +02:00
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:
parent
4a59a80fe2
commit
f6fa420cfd
@ -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.
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user