Changeset 1993 in ntrip for trunk/BNC/bncfigurelate.cpp
- Timestamp:
- Nov 20, 2009, 9:47:36 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigurelate.cpp
r1992 r1993 52 52 slotNextAnimationFrame(); 53 53 for (int ii = 0; ii <= 1000; ii++) { 54 _r gb[0][ii] = qrand() % 255;55 _r gb[2][ii] = qrand() % 255;56 _r gb[1][ii] = qrand() % 255;54 _ran[0][ii] = qrand() % 255; 55 _ran[1][ii] = qrand() % 255; 56 _ran[2][ii] = qrand() % 100; 57 57 } 58 58 } … … 156 156 if(maxLate > 0.0) { 157 157 int yy = int(yLength * (it.value() / maxLate)); 158 QColor color = QColor::from Rgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);158 QColor color = QColor::fromHsv(180,200,120+_ran[2][anchor]); 159 159 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 160 160 QBrush(color,Qt::SolidPattern));
Note:
See TracChangeset
for help on using the changeset viewer.