Changeset 11184 for trunk


Ignore:
Timestamp:
06/24/11 16:39:44 (13 years ago)
Author:
tbretz
Message:
Fixed displays of FadLeds
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r11179 r11184  
    433433
    434434        //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());
    436436    }
    437437
     
    10961096
    10971097        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>";
    10991099        for (int b=0; b<10; b++)
    11001100            tip << "<th>" << b << "</th>";
     
    11431143    void SetFadLed(QPushButton *led, const DimData &d, uint16_t bitmask)
    11441144    {
    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;
    11471147        const uint16_t *ptr     = d.ptr<uint16_t>()+2;
    11481148
    1149         SetLedColor(led, quality&bitmask?(value&bitmask?kLedGreen:kLedRed):kLedOrange, d.time);
     1149        SetLedColor(led, quality?kLedOrange:(value?kLedGreen:kLedRed), d.time);
    11501150
    11511151        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>";
    11531153        for (int b=0; b<10; b++)
    11541154            tip << "<th>" << b << "</th>";
Note: See TracChangeset for help on using the changeset viewer.