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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1989 r1990  
    179179    int xx = xMin+80+anchor*12;
    180180
     181    if(_maxRate > 0.0) {
     182      int yy = int(yLength * (it.value()->_mean / _maxRate));
     183      QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
     184      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
     185                       QBrush(color,Qt::SolidPattern));
     186      painter.setPen(Qt::black);
     187      if(it.value()->_mean<=0) {
     188        painter.setPen(Qt::red);
     189      }
     190    }
     191
    181192    painter.save();
    182193    painter.translate(xx-13, int(yMax-yMin)*xLine+65);
    … …  
    185196    painter.restore();
    186197
    187     if(_maxRate > 0.0) {
    188       int yy = int(yLength * (it.value()->_mean / _maxRate));
    189       QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
    190       painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    191                        QBrush(color,Qt::SolidPattern));
    192     }
    193 
    194198    anchor++;
    195199  }
Note: See TracChangeset for help on using the changeset viewer.