Changeset 9124 in ntrip for trunk/BNC/src/bncfigurelate.cpp
- Timestamp:
- Sep 21, 2020, 3:11:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncfigurelate.cpp
r8252 r9124 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 * -----------------------------------------------------------------------*/ … … 48 48 #include <QVariant> 49 49 50 #include "bncfigurelate.h" 50 #include "bncfigurelate.h" 51 51 #include "bncsettings.h" 52 52 … … 67 67 // Destructor 68 68 //////////////////////////////////////////////////////////////////////////// 69 bncFigureLate::~bncFigureLate() { 69 bncFigureLate::~bncFigureLate() { 70 70 } 71 71 72 // 72 // 73 73 //////////////////////////////////////////////////////////////////////////// 74 74 void bncFigureLate::updateMountPoints() { … … 88 88 } 89 89 90 // 90 // 91 91 //////////////////////////////////////////////////////////////////////////// 92 92 void bncFigureLate::slotNewLatency(const QByteArray staID, double clate) { … … 97 97 } 98 98 99 // 99 // 100 100 //////////////////////////////////////////////////////////////////////////// 101 101 void bncFigureLate::slotNextAnimationFrame() { … … 105 105 } 106 106 107 // 107 // 108 108 //////////////////////////////////////////////////////////////////////////// 109 109 void bncFigureLate::paintEvent(QPaintEvent *) { … … 112 112 int xMax = 640; 113 113 int yMin = 0; 114 int yMax = 140;114 int yMax = 90; 115 115 float xLine = .60; 116 116 … … 172 172 int yy = int(yLength * (it.value() / maxLateRounded)); 173 173 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)); 176 175 painter.setPen(Qt::black); 177 176 if(it.value()<=0) { … … 183 182 painter.translate(xx-13, int(yMax-yMin)*xLine+65); 184 183 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) + " "); 186 185 painter.restore(); 187 186
Note:
See TracChangeset
for help on using the changeset viewer.