- Timestamp:
- Nov 19, 2009, 11:32:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigurelate.cpp
r1990 r1991 117 117 int yLength = int((yMax-yMin)*xLine) - (yMin+10); 118 118 painter.drawLine(xMin+60, int((yMax-yMin)*xLine), xMin+60, yMin+10); 119 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 ms "));120 119 121 120 double maxLate = 0.0; … … 128 127 } 129 128 129 QString maxLateStr; 130 if(maxLate < 1e3) { 131 maxLateStr = QString("%1 ms ").arg(int(maxLate)); 132 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 ms ")); 133 } 134 else { 135 maxLateStr = QString("%1 sec ").arg(int(maxLate / 1.e3)); 136 painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 sec ")); 137 } 138 130 139 if(maxLate > 0.0) { 131 QString maxLateStr;132 maxLateStr = QString("%1 ms ").arg(int(maxLate));133 140 painter.drawText(0, yMin+25-5, xMin+60,15,Qt::AlignRight,maxLateStr); 134 141 } 142 135 143 136 144 // x-axis
Note:
See TracChangeset
for help on using the changeset viewer.