Ignore:
Timestamp:
Sep 21, 2020, 9:41:49 PM (20 months ago)
Author:
stuerze
Message:

minor changes regarding ssr, long mountpoint names and latency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncfigurelate.cpp

    r7182 r9127  
    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 * -----------------------------------------------------------------------*/
     
    4141#include <iostream>
    4242
    43 #include "bncfigurelate.h" 
     43#include "bncfigurelate.h"
    4444#include "bncsettings.h"
    4545
     
    6060// Destructor
    6161////////////////////////////////////////////////////////////////////////////
    62 bncFigureLate::~bncFigureLate() { 
     62bncFigureLate::~bncFigureLate() {
    6363}
    6464
    65 // 
     65//
    6666////////////////////////////////////////////////////////////////////////////
    6767void bncFigureLate::updateMountPoints() {
     
    8181}
    8282
    83 // 
     83//
    8484////////////////////////////////////////////////////////////////////////////
    8585void bncFigureLate::slotNewLatency(const QByteArray staID, double clate) {
     
    9090}
    9191
    92 // 
     92//
    9393////////////////////////////////////////////////////////////////////////////
    9494void bncFigureLate::slotNextAnimationFrame() {
     
    9898}
    9999
    100 // 
     100//
    101101////////////////////////////////////////////////////////////////////////////
    102102void bncFigureLate::paintEvent(QPaintEvent *) {
     
    105105  int xMax = 640;
    106106  int yMin =   0;
    107   int yMax = 140;
     107  int yMax =  90;
    108108  float xLine = .60;
    109109
     
    165165      int yy = int(yLength * (it.value() / maxLateRounded));
    166166      QColor color = QColor::fromHsv(180,200,120+_ran[2][anchor]);
    167       painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy,
    168                        QBrush(color,Qt::SolidPattern));
     167      painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, QBrush(color,Qt::SolidPattern));
    169168      painter.setPen(Qt::black);
    170169      if(it.value()<=0) {
     
    176175    painter.translate(xx-13, int(yMax-yMin)*xLine+65);
    177176    painter.rotate(-90);
    178     painter.drawText(0,0,65,50,Qt::AlignRight,staID.left(5) + "   ");
     177    painter.drawText(-30,0,95,50,Qt::AlignRight,staID.left(10) + "   ");
    179178    painter.restore();
    180179
Note: See TracChangeset for help on using the changeset viewer.