Changeset 1994 in ntrip


Ignore:
Timestamp:
Nov 20, 2009, 11:28:39 AM (14 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1993 r1994  
    5353  for (int ii = 0; ii <= 1000; ii++) {
    5454    _ran[0][ii] = qrand() % 255;
    55     _ran[1][ii] = qrand() % 40;
    56     _ran[2][ii] = qrand() % 100;
     55    _ran[2][ii] = qrand() % 255;
     56    _ran[1][ii] = qrand() % 255;
    5757  }
    5858}
     
    181181    if(_maxRate > 0.0) {
    182182      int yy = int(yLength * (it.value()->_mean / _maxRate));
    183       QColor color = QColor::fromHsv(0,100+_ran[1][anchor],155+_ran[2][anchor]);
     183      QColor color = QColor::fromRgb(_ran[0][anchor],_ran[1][anchor],_ran[2][anchor],150);
    184184      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    185185                       QBrush(color,Qt::SolidPattern));
Note: See TracChangeset for help on using the changeset viewer.