Changeset 11184 for trunk/FACT++
- Timestamp:
- 06/24/11 16:39:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11179 r11184 433 433 434 434 //button->setToolTip("Last change: "+QDateTime::currentDateTimeUtc().toString()+" UTC"); 435 button->setToolTip(("Last change: "+t.GetAsStr()+" UTC").c_str());435 button->setToolTip(("Last change: "+t.GetAsStr()+" (UTC)").c_str()); 436 436 } 437 437 … … 1096 1096 1097 1097 ostringstream tip; 1098 tip << "<table border='1'><tr><th colspan='11'>" << Time().GetAsStr() << " </th></tr><tr><th></th>";1098 tip << "<table border='1'><tr><th colspan='11'>" << Time().GetAsStr() << " (UTC)</th></tr><tr><th></th>"; 1099 1099 for (int b=0; b<10; b++) 1100 1100 tip << "<th>" << b << "</th>"; … … 1143 1143 void SetFadLed(QPushButton *led, const DimData &d, uint16_t bitmask) 1144 1144 { 1145 const uint16_t quality = d.ptr<uint16_t>()[0];1146 const uint16_t value = d.ptr<uint16_t>()[1];1145 const bool quality = d.ptr<uint16_t>()[0]&mask; 1146 const bool value = d.ptr<uint16_t>()[1]&bitmask; 1147 1147 const uint16_t *ptr = d.ptr<uint16_t>()+2; 1148 1148 1149 SetLedColor(led, quality &bitmask?(value&bitmask?kLedGreen:kLedRed):kLedOrange, d.time);1149 SetLedColor(led, quality?kLedOrange:(value?kLedGreen:kLedRed), d.time); 1150 1150 1151 1151 ostringstream tip; 1152 tip << "<table border='1'><tr><th colspan='11'>" << d.time.GetAsStr() << " </th></tr><tr><th></th>";1152 tip << "<table border='1'><tr><th colspan='11'>" << d.time.GetAsStr() << " (UTC)</th></tr><tr><th></th>"; 1153 1153 for (int b=0; b<10; b++) 1154 1154 tip << "<th>" << b << "</th>";
Note:
See TracChangeset
for help on using the changeset viewer.