Changeset 9124 in ntrip for trunk/BNC/src/bncfigurelate.cpp


Ignore:
Timestamp:
Sep 21, 2020, 3:11:55 PM (4 years ago)
Author:
stuerze
Message:

minor changes regarding latency check, ssr and long mountpoint names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncfigurelate.cpp

    r8252 r9124  
    2929 * Class:      bncFigureLate
    3030 *
    31  * Purpose:   
     31 * Purpose:
    3232 *
    3333 * Author:     Perlt, Mervart
     
    3535 * Created:    11-Nov-2009
    3636 *
    37  * Changes:   
     37 * Changes:
    3838 *
    3939 * -----------------------------------------------------------------------*/
     
    4848#include <QVariant>
    4949
    50 #include "bncfigurelate.h" 
     50#include "bncfigurelate.h"
    5151#include "bncsettings.h"
    5252
     
    6767// Destructor
    6868////////////////////////////////////////////////////////////////////////////
    69 bncFigureLate::~bncFigureLate() { 
     69bncFigureLate::~bncFigureLate() {
    7070}
    7171
    72 // 
     72//
    7373////////////////////////////////////////////////////////////////////////////
    7474void bncFigureLate::updateMountPoints() {
     
    8888}
    8989
    90 // 
     90//
    9191////////////////////////////////////////////////////////////////////////////
    9292void bncFigureLate::slotNewLatency(const QByteArray staID, double clate) {
     
    9797}
    9898
    99 // 
     99//
    100100////////////////////////////////////////////////////////////////////////////
    101101void bncFigureLate::slotNextAnimationFrame() {
     
    105105}
    106106
    107 // 
     107//
    108108////////////////////////////////////////////////////////////////////////////
    109109void bncFigureLate::paintEvent(QPaintEvent *) {
     
    112112  int xMax = 640;
    113113  int yMin =   0;
    114   int yMax = 140;
     114  int yMax =  90;
    115115  float xLine = .60;
    116116
     
    172172      int yy = int(yLength * (it.value() / maxLateRounded));
    173173      QColor color = QColor::fromHsv(180,200,120+_ran[2][anchor]);
    174       painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    175                        QBrush(color,Qt::SolidPattern));
     174      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, QBrush(color,Qt::SolidPattern));
    176175      painter.setPen(Qt::black);
    177176      if(it.value()<=0) {
     
    183182    painter.translate(xx-13, int(yMax-yMin)*xLine+65);
    184183    painter.rotate(-90);
    185     painter.drawText(0,0,65,50,Qt::AlignRight,staID.left(5) + "   ");
     184    painter.drawText(-30,0,95,50,Qt::AlignRight,staID.left(10) + "   ");
    186185    painter.restore();
    187186
Note: See TracChangeset for help on using the changeset viewer.