Changeset 9127 in ntrip for branches/BNC_2.12/src/bncfigurelate.cpp
- Timestamp:
- Sep 21, 2020, 9:41:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncfigurelate.cpp
r7182 r9127 29 29 * Class: bncFigureLate 30 30 * 31 * Purpose: 31 * Purpose: 32 32 * 33 33 * Author: Perlt, Mervart … … 35 35 * Created: 11-Nov-2009 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 41 41 #include <iostream> 42 42 43 #include "bncfigurelate.h" 43 #include "bncfigurelate.h" 44 44 #include "bncsettings.h" 45 45 … … 60 60 // Destructor 61 61 //////////////////////////////////////////////////////////////////////////// 62 bncFigureLate::~bncFigureLate() { 62 bncFigureLate::~bncFigureLate() { 63 63 } 64 64 65 // 65 // 66 66 //////////////////////////////////////////////////////////////////////////// 67 67 void bncFigureLate::updateMountPoints() { … … 81 81 } 82 82 83 // 83 // 84 84 //////////////////////////////////////////////////////////////////////////// 85 85 void bncFigureLate::slotNewLatency(const QByteArray staID, double clate) { … … 90 90 } 91 91 92 // 92 // 93 93 //////////////////////////////////////////////////////////////////////////// 94 94 void bncFigureLate::slotNextAnimationFrame() { … … 98 98 } 99 99 100 // 100 // 101 101 //////////////////////////////////////////////////////////////////////////// 102 102 void bncFigureLate::paintEvent(QPaintEvent *) { … … 105 105 int xMax = 640; 106 106 int yMin = 0; 107 int yMax = 140;107 int yMax = 90; 108 108 float xLine = .60; 109 109 … … 165 165 int yy = int(yLength * (it.value() / maxLateRounded)); 166 166 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)); 169 168 painter.setPen(Qt::black); 170 169 if(it.value()<=0) { … … 176 175 painter.translate(xx-13, int(yMax-yMin)*xLine+65); 177 176 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) + " "); 179 178 painter.restore(); 180 179
Note:
See TracChangeset
for help on using the changeset viewer.