Changeset 1965 in ntrip
- Timestamp:
- Nov 16, 2009, 10:56:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigure.cpp
r1964 r1965 152 152 if (8.0 * _maxRate < 1e3) { 153 153 maxRateStr = QString("%1 bps ").arg(int(8.0 * _maxRate)); 154 painter.drawText(0, int((yMax-yMin)*xLine)- 10, xMin+50,15,Qt::AlignRight,tr("0 bps "));154 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+50,15,Qt::AlignRight,tr("0 bps ")); 155 155 } 156 156 else if (8.0 * _maxRate < 1e6) { 157 157 maxRateStr = QString("%1 kbps ").arg(int(8.0 * _maxRate / 1.e3)); 158 painter.drawText(0, int((yMax-yMin)*xLine)- 10, xMin+50,15,Qt::AlignRight,tr("0 kbps "));158 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+50,15,Qt::AlignRight,tr("0 kbps ")); 159 159 } 160 160 else { 161 161 maxRateStr = QString("%1 Mbps ").arg(int(8.0 * _maxRate / 1.e6)); 162 painter.drawText(0, int((yMax-yMin)*xLine)- 10, xMin+50,15,Qt::AlignRight,tr("0 Mbps "));162 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+50,15,Qt::AlignRight,tr("0 Mbps ")); 163 163 } 164 164 165 165 if(_maxRate > 0.0) { 166 painter.drawText(0, yMin+25- 10, xMin+50,15,Qt::AlignRight,maxRateStr);166 painter.drawText(0, yMin+25-5, xMin+50,15,Qt::AlignRight,maxRateStr); 167 167 } 168 168
Note:
See TracChangeset
for help on using the changeset viewer.