Changeset 2006 in ntrip


Ignore:
Timestamp:
Nov 22, 2009, 12:07:04 AM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigurelate.cpp

    r2005 r2006  
    127127  }
    128128
    129   double maxLateRound = 0.0;
    130129  QString maxLateStr;
    131130  if(maxLate < 1e3) {
    132     maxLateRound = int(maxLate/100)*100 + 300;
    133131    maxLateStr = QString("%1 ms  ").arg(int(maxLate/200)*200);
    134132    painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 ms  "));
    135133  }
    136134  else if (maxLate < 6e4) {
    137     maxLateRound = int(maxLate / 1.e3) + 1500;
    138135    maxLateStr = QString("%1 sec  ").arg(int(maxLate / 1.e3));
    139136    painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 sec  "));
    140137  }
    141138  else {
    142     maxLateRound = int(maxLate / 6.e3) + 90000;
    143139    maxLateStr = QString("%1 min  ").arg(int(maxLate / 6.e4));
    144140    painter.drawText(0, int((yMax-yMin)*xLine)-5, xMin+60,15,Qt::AlignRight,tr("0 min  "));
    145141  }
    146142
    147   maxLate = maxLateRound;
    148143  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);
    150145  }
    151146
Note: See TracChangeset for help on using the changeset viewer.