Changeset 1994 in ntrip
- Timestamp:
- Nov 20, 2009, 11:28:39 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigure.cpp
r1993 r1994 53 53 for (int ii = 0; ii <= 1000; ii++) { 54 54 _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; 57 57 } 58 58 } … … 181 181 if(_maxRate > 0.0) { 182 182 int yy = int(yLength * (it.value()->_mean / _maxRate)); 183 QColor color = QColor::from Hsv(0,100+_ran[1][anchor],155+_ran[2][anchor]);183 QColor color = QColor::fromRgb(_ran[0][anchor],_ran[1][anchor],_ran[2][anchor],150); 184 184 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 185 185 QBrush(color,Qt::SolidPattern));
Note:
See TracChangeset
for help on using the changeset viewer.