Changeset 1990 in ntrip
- Timestamp:
- Nov 19, 2009, 11:26:26 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigure.cpp
r1989 r1990 179 179 int xx = xMin+80+anchor*12; 180 180 181 if(_maxRate > 0.0) { 182 int yy = int(yLength * (it.value()->_mean / _maxRate)); 183 QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]); 184 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 185 QBrush(color,Qt::SolidPattern)); 186 painter.setPen(Qt::black); 187 if(it.value()->_mean<=0) { 188 painter.setPen(Qt::red); 189 } 190 } 191 181 192 painter.save(); 182 193 painter.translate(xx-13, int(yMax-yMin)*xLine+65); … … 185 196 painter.restore(); 186 197 187 if(_maxRate > 0.0) {188 int yy = int(yLength * (it.value()->_mean / _maxRate));189 QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);190 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,191 QBrush(color,Qt::SolidPattern));192 }193 194 198 anchor++; 195 199 } -
trunk/BNC/bncfigurelate.cpp
r1989 r1990 146 146 int xx = xMin+80+anchor*12; 147 147 148 if(maxLate > 0.0) { 149 int yy = int(yLength * (it.value() / maxLate)); 150 QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]); 151 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 152 QBrush(color,Qt::SolidPattern)); 153 painter.setPen(Qt::black); 154 if(it.value()<=0) { 155 painter.setPen(Qt::red); 156 } 157 } 158 148 159 painter.save(); 149 160 painter.translate(xx-13, int(yMax-yMin)*xLine+65); … … 152 163 painter.restore(); 153 164 154 if(maxLate > 0.0) {155 int yy = int(yLength * (it.value() / maxLate));156 QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);157 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,158 QBrush(color,Qt::SolidPattern));159 }160 161 165 anchor++; 162 166 }
Note:
See TracChangeset
for help on using the changeset viewer.