Changeset 7640 in ntrip for trunk/BNC/src/bncfigure.cpp


Ignore:
Timestamp:
Dec 18, 2015, 3:18:17 PM (8 years ago)
Author:
stuerze
Message:

some code cleanup

File:
1 edited

Legend:

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

    r7182 r7640  
    2929 * Class:      bncFigure
    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 "bncfigure.h" 
     43#include "bncfigure.h"
    4444#include "bncsettings.h"
    4545
     
    6060// Destructor
    6161////////////////////////////////////////////////////////////////////////////
    62 bncFigure::~bncFigure() {
    63 }
    64 
    65 //
     62bncFigure::~bncFigure() {
     63  QMapIterator<QByteArray, sumAndMean*> it(_bytes);
     64  while (it.hasNext()) {
     65    it.next();
     66    delete it.value();
     67  }
     68}
     69
     70//
    6671////////////////////////////////////////////////////////////////////////////
    6772void bncFigure::updateMountPoints() {
     
    8994}
    9095
    91 // 
     96//
    9297////////////////////////////////////////////////////////////////////////////
    9398void bncFigure::slotNewData(const QByteArray staID, double nbyte) {
     
    99104}
    100105
    101 // 
     106//
    102107////////////////////////////////////////////////////////////////////////////
    103108void bncFigure::slotNextAnimationFrame() {
     
    129134}
    130135
    131 // 
     136//
    132137////////////////////////////////////////////////////////////////////////////
    133138void bncFigure::paintEvent(QPaintEvent *) {
     
    187192      int yy = int(yLength * (it.value()->_mean / maxRateRounded));
    188193      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,
    190195                       QBrush(color,Qt::SolidPattern));
    191196      painter.setPen(Qt::black);
Note: See TracChangeset for help on using the changeset viewer.