Changeset 1991 in ntrip for trunk


Ignore:
Timestamp:
Nov 19, 2009, 11:32:59 PM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigurelate.cpp

    r1990 r1991  
    117117  int yLength = int((yMax-yMin)*xLine) - (yMin+10);
    118118  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  "));
    120119
    121120  double maxLate = 0.0;
     
    128127  }
    129128
     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
    130139  if(maxLate > 0.0) {
    131     QString maxLateStr;
    132     maxLateStr = QString("%1 ms  ").arg(int(maxLate));
    133140    painter.drawText(0, yMin+25-5, xMin+60,15,Qt::AlignRight,maxLateStr);
    134141  }
     142
    135143
    136144  // x-axis
Note: See TracChangeset for help on using the changeset viewer.