Changeset 154 for Evidence/Edd


Ignore:
Timestamp:
01/29/10 14:27:34 (15 years ago)
Author:
ogrimm
Message:
Updates to status service
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Evidence/Edd/Edd.cc

    r152 r154  
    6969    // If this is a status indicator, adapt background colour
    7070    if (Data.size() == Text.size()+2) {
    71       switch (Data[Text.size() + 2]) {
     71      switch (Data[Text.size() + 1]) {
    7272        case 0:  Pal.setColor(QPalette::Base, Qt::white); break;
    73         case 1:  Pal.setColor(QPalette::Base, Qt::cyan); break;
     73        case 1:  Pal.setColor(QPalette::Base, Qt::yellow); break;
    7474        case 2:  Pal.setColor(QPalette::Base, Qt::red); break;
    7575        case 3:  Pal.setColor(QPalette::Base, Qt::red); break;
     
    623623  MainLayout->addWidget(Textout, 1, 0, 1, 2);
    624624
     625  QFrame *Val = new QFrame();
     626  Val->setFrameStyle(QFrame::HLine);
     627  Val->setLineWidth(10);
     628  //Value->setMaximumWidth(200);
     629  MainLayout->addWidget(Val, 2, 0, 2, 1);     
     630
    625631  Value = new Edd_Indicator("DColl/Status");
    626632  Value->setMaximumWidth(200);
     
    702708  // Tab widget
    703709  TabWidget = new QTabWidget(Central);
    704   TabWidget->addTab(MainWidget, "&Main");
    705710  TabWidget->addTab(BiasWidget, "&Bias");
    706711  TabWidget->addTab(EnvironmentWidget, "&Environment");
     712  TabWidget->addTab(MainWidget, "Evidence");
    707713
    708714  // Menu bar
Note: See TracChangeset for help on using the changeset viewer.