- Timestamp:
- Nov 15, 2009, 4:42:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncfigure.cpp ¶
r1961 r1962 138 138 float xLine = .60; 139 139 140 141 140 QPainter painter(this); 142 141 … … 178 177 QByteArray staID = it.key(); 179 178 180 int xx = xMin+70+anchor*1 5;179 int xx = xMin+70+anchor*12; 181 180 int yy = int(yLength * (it.value()->_mean / _maxRate)); 182 181 183 182 painter.save(); 184 painter.translate(xx, yMax); 183 painter.translate(xx-5, yMax); 185 184 painter.rotate(-90); 186 185 painter.drawText(0, 0, staID.left(5)); … … 189 188 if(_maxRate > 0.0) { 190 189 QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]); 191 painter.fillRect(xx-1 0, int((yMax-yMin)*xLine)-yy,10, yy,190 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 192 191 QBrush(color,Qt::SolidPattern)); 193 192 }
Note:
See TracChangeset
for help on using the changeset viewer.