Changeset 7640 in ntrip for trunk/BNC/src/bncfigure.cpp
- Timestamp:
- Dec 18, 2015, 3:18:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncfigure.cpp
r7182 r7640 29 29 * Class: bncFigure 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 "bncfigure.h" 43 #include "bncfigure.h" 44 44 #include "bncsettings.h" 45 45 … … 60 60 // Destructor 61 61 //////////////////////////////////////////////////////////////////////////// 62 bncFigure::~bncFigure() { 63 } 64 65 // 62 bncFigure::~bncFigure() { 63 QMapIterator<QByteArray, sumAndMean*> it(_bytes); 64 while (it.hasNext()) { 65 it.next(); 66 delete it.value(); 67 } 68 } 69 70 // 66 71 //////////////////////////////////////////////////////////////////////////// 67 72 void bncFigure::updateMountPoints() { … … 89 94 } 90 95 91 // 96 // 92 97 //////////////////////////////////////////////////////////////////////////// 93 98 void bncFigure::slotNewData(const QByteArray staID, double nbyte) { … … 99 104 } 100 105 101 // 106 // 102 107 //////////////////////////////////////////////////////////////////////////// 103 108 void bncFigure::slotNextAnimationFrame() { … … 129 134 } 130 135 131 // 136 // 132 137 //////////////////////////////////////////////////////////////////////////// 133 138 void bncFigure::paintEvent(QPaintEvent *) { … … 187 192 int yy = int(yLength * (it.value()->_mean / maxRateRounded)); 188 193 QColor color = QColor::fromRgb(_ran[0][anchor],_ran[1][anchor],_ran[2][anchor],150); 189 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 194 painter.fillRect(xx-13, int((yMax-yMin)*xLine)-yy, 9, yy, 190 195 QBrush(color,Qt::SolidPattern)); 191 196 painter.setPen(Qt::black);
Note:
See TracChangeset
for help on using the changeset viewer.