Changeset 4330 in ntrip


Ignore:
Timestamp:
Jun 23, 2012, 6:39:54 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/graphwin.cpp

    r4329 r4330  
    4141#include "graphwin.h"
    4242#include "qwt_scale_widget.h"
     43#include <qwt_scale_engine.h>
    4344
    4445using namespace std;
     
    7475   _colorScale->setTitle( title );
    7576
    76    _colorScale->setColorMap(QwtInterval(0.0, 1.0), new t_colorMap());
     77   QwtInterval interval(0.0, 1.0);
     78   _colorScale->setColorMap(interval, new t_colorMap());
     79
     80   QwtLinearScaleEngine scaleEngine;
     81    _colorScale->setScaleDiv(scaleEngine.transformation(),
     82      scaleEngine.divideScale(interval.minValue(), interval.maxValue(), 8, 5));
    7783
    7884  // Layout
Note: See TracChangeset for help on using the changeset viewer.