Changeset 2006 in ntrip
- Timestamp:
- Nov 22, 2009, 12:07:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigurelate.cpp
r2005 r2006 127 127 } 128 128 129 double maxLateRound = 0.0;130 129 QString maxLateStr; 131 130 if(maxLate < 1e3) { 132 maxLateRound = int(maxLate/100)*100 + 300;133 131 maxLateStr = QString("%1 ms ").arg(int(maxLate/200)*200); 134 132 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 ms ")); 135 133 } 136 134 else if (maxLate < 6e4) { 137 maxLateRound = int(maxLate / 1.e3) + 1500;138 135 maxLateStr = QString("%1 sec ").arg(int(maxLate / 1.e3)); 139 136 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 sec ")); 140 137 } 141 138 else { 142 maxLateRound = int(maxLate / 6.e3) + 90000;143 139 maxLateStr = QString("%1 min ").arg(int(maxLate / 6.e4)); 144 140 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 min ")); 145 141 } 146 142 147 maxLate = maxLateRound;148 143 if(maxLate > 0.0) { 149 painter.drawText(0, int((yMax-yMin)*xLine) - yLength, xMin+60, 15,Qt::AlignRight,maxLateStr);144 painter.drawText(0, yMin+25-5, xMin+60,15,Qt::AlignRight,maxLateStr); 150 145 } 151 146
Note:
See TracChangeset
for help on using the changeset viewer.