Changeset 1990 in ntrip for trunk/BNC/bncfigurelate.cpp


Ignore:
Timestamp:
Nov 19, 2009, 11:26:26 AM (14 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigurelate.cpp

    r1989 r1990  
    146146    int xx = xMin+80+anchor*12;
    147147
     148    if(maxLate > 0.0) {
     149      int yy = int(yLength * (it.value() / maxLate));
     150      QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
     151      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
     152                       QBrush(color,Qt::SolidPattern));
     153      painter.setPen(Qt::black);
     154      if(it.value()<=0) {
     155        painter.setPen(Qt::red);
     156      }
     157    }
     158
    148159    painter.save();
    149160    painter.translate(xx-13, int(yMax-yMin)*xLine+65);
     
    152163    painter.restore();
    153164
    154     if(maxLate > 0.0) {
    155       int yy = int(yLength * (it.value() / maxLate));
    156       QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
    157       painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    158                        QBrush(color,Qt::SolidPattern));
    159     }
    160 
    161165    anchor++;
    162166  }
Note: See TracChangeset for help on using the changeset viewer.