mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user