- Timestamp:
- Nov 14, 2009, 11:41:13 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigure.cpp
r1952 r1956 51 51 updateMountPoints(); 52 52 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 } 53 58 } 54 59 … … 179 184 180 185 if(_maxRate > 0.0) { 186 QColor color = QColor::fromRgb(_r[anchor],_g[anchor],_b[anchor]); 181 187 painter.fillRect(xx-10, int((yMax-yMin)*xLine)-yy, 10, yy, 182 QBrush( Qt::gray,Qt::SolidPattern));188 QBrush(color,Qt::SolidPattern)); 183 189 } 184 190 -
trunk/BNC/bncfigure.h
r1936 r1956 52 52 int _counter; 53 53 double _maxRate; 54 int _r[1001]; 55 int _g[1001]; 56 int _b[1001]; 54 57 }; 55 58
Note:
See TracChangeset
for help on using the changeset viewer.