Changeset 1937 in ntrip


Ignore:
Timestamp:
Nov 12, 2009, 9:20:10 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1936 r1937  
    136136  // y-axis
    137137  // ------
     138  int yLength = (yMax-40) - (yMin+10);
    138139  painter.drawLine(xMin+50, yMax-40, xMin+50, yMin+10);
    139140  painter.drawText(xMin+40, yMax-40, tr("0"));
     
    153154    it.next();
    154155    QByteArray staID = it.key();
    155     double     vv    = it.value()->_mean;
    156156
     157    int yy = yLength * (it.value()->_mean / _maxRate);
    157158    int xx = xMin+100+anchor*40;
    158159
    159160    painter.drawText(xx, yMax-10, staID);
    160161
    161     QRectF vrect(xx, yMax-40-vv, 30, vv);
    162     QBrush xBrush(Qt::blue,Qt::SolidPattern);
    163     painter.fillRect(vrect,xBrush);
    164     painter.drawRect(vrect);
     162    painter.fillRect(xx, yMax-40-yy, 30, yy,
     163                     QBrush(Qt::blue,Qt::SolidPattern));
     164
    165165    anchor++;
    166166  }
Note: See TracChangeset for help on using the changeset viewer.