- Timestamp:
- Dec 8, 2014, 1:45:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.1.x/src/PacpusSensor/src/ui/pacpusmainwindow.cpp
r162 r335 147 147 QPalette palette = b->palette(); 148 148 149 switch (state) {149 switch (state) { 150 150 case ComponentBase::STOPPED : 151 palette.setColor(QPalette:: Base, Qt::white);151 palette.setColor(QPalette::Foreground, Qt::gray); 152 152 b->setPalette(palette); 153 153 //qDebug() << "STOPPED"; … … 155 155 156 156 case ComponentBase::NOT_MONITORED : 157 palette.setColor(QPalette:: Base, Qt::gray);157 palette.setColor(QPalette::Foreground, Qt::black); 158 158 b->setPalette(palette); 159 159 //qDebug() << "NOT_MONITORED"; … … 161 161 162 162 case ComponentBase::MONITOR_OK : 163 palette.setColor(QPalette:: Base, Qt::green);163 palette.setColor(QPalette::Foreground, Qt::green); 164 164 b->setPalette(palette); 165 165 //qDebug() << "MONITOR_OK"; … … 167 167 168 168 case ComponentBase::MONITOR_NOK : 169 palette.setColor(QPalette:: Base, Qt::red);169 palette.setColor(QPalette::Foreground, Qt::red); 170 170 b->setPalette(palette); 171 171 //qDebug() << "MONITOR_NOK";
Note:
See TracChangeset
for help on using the changeset viewer.