Changeset 1960 in ntrip for trunk/BNC


Ignore:
Timestamp:
Nov 15, 2009, 1:37:56 PM (15 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1959 r1960  
    141141  QPainter painter(this);
    142142
     143  QFont font;
     144  font.setPointSize(int(font.QFont::pointSize()*0.7));
     145  painter.setFont(font);
     146
    143147  // y-axis
    144148  // ------
     
    148152  QString maxRateStr;
    149153  if      (8.0 * _maxRate < 1e3) {
    150     maxRateStr = QString("%1 bps").arg(int(8.0 * _maxRate));
    151     painter.drawText(xMin+0, int((yMax-yMin)*xLine), tr("0 bps"));
     154    maxRateStr = QString("  %1 bps").arg(int(8.0 * _maxRate));
     155    painter.drawText(xMin+0, int((yMax-yMin)*xLine), tr("  0 bps"));
    152156  }
    153157  else if (8.0 * _maxRate < 1e6) {
    154     maxRateStr = QString("%1 kbps").arg(int(8.0 * _maxRate / 1.e3));
    155     painter.drawText(xMin+0, int((yMax-yMin)*xLine), tr("0 kbps"));
     158    maxRateStr = QString("  %1 kbps").arg(int(8.0 * _maxRate / 1.e3));
     159    painter.drawText(xMin+0, int((yMax-yMin)*xLine), tr("  0 kbps"));
    156160  }
    157161  else {
    158     maxRateStr = QString("%1 Mbps").arg(int(8.0 * _maxRate / 1.e6));
    159     painter.drawText(xMin+0, int((yMax-yMin)*xLine), tr("0 Mbps"));
     162    maxRateStr = QString(  "%1 Mbps").arg(int(8.0 * _maxRate / 1.e6));
     163    painter.drawText(xMin+0, int((yMax-yMin)*xLine), tr("  0 Mbps"));
    160164  }
    161165
Note: See TracChangeset for help on using the changeset viewer.