- Timestamp:
- Nov 12, 2009, 9:20:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncfigure.cpp ¶
r1936 r1937 136 136 // y-axis 137 137 // ------ 138 int yLength = (yMax-40) - (yMin+10); 138 139 painter.drawLine(xMin+50, yMax-40, xMin+50, yMin+10); 139 140 painter.drawText(xMin+40, yMax-40, tr("0")); … … 153 154 it.next(); 154 155 QByteArray staID = it.key(); 155 double vv = it.value()->_mean;156 156 157 int yy = yLength * (it.value()->_mean / _maxRate); 157 158 int xx = xMin+100+anchor*40; 158 159 159 160 painter.drawText(xx, yMax-10, staID); 160 161 161 QRectF vrect(xx, yMax-40-vv, 30, vv); 162 QBrush xBrush(Qt::blue,Qt::SolidPattern); 163 painter.fillRect(vrect,xBrush); 164 painter.drawRect(vrect); 162 painter.fillRect(xx, yMax-40-yy, 30, yy, 163 QBrush(Qt::blue,Qt::SolidPattern)); 164 165 165 anchor++; 166 166 }
Note:
See TracChangeset
for help on using the changeset viewer.