Changeset 1956 in ntrip


Ignore:
Timestamp:
Nov 14, 2009, 11:41:13 PM (14 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1952 r1956  
    5151  updateMountPoints();
    5252  slotNextAnimationFrame();
     53  for (int ii = 0; ii <= 1000; ii++) {
     54    _r[ii] = qrand() % 255;
     55    _g[ii] = qrand() % 255;
     56    _b[ii] = qrand() % 255;
     57  }
    5358}
    5459
     
    179184
    180185    if(_maxRate > 0.0) {
     186      QColor color = QColor::fromRgb(_r[anchor],_g[anchor],_b[anchor]);
    181187      painter.fillRect(xx-10, int((yMax-yMin)*xLine)-yy, 10, yy,
    182                        QBrush(Qt::gray,Qt::SolidPattern));
     188                       QBrush(color,Qt::SolidPattern));
    183189    }
    184190
  • trunk/BNC/bncfigure.h

    r1936 r1956  
    5252  int                           _counter;
    5353  double                        _maxRate;
     54  int _r[1001];
     55  int _g[1001];
     56  int _b[1001];
    5457};
    5558
Note: See TracChangeset for help on using the changeset viewer.