Changeset 4356 in ntrip for trunk/BNC/src/rinex/graphwin.cpp


Ignore:
Timestamp:
Jun 24, 2012, 6:52:38 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4349 r4356  
    4747// Constructor
    4848////////////////////////////////////////////////////////////////////////////
    49 t_graphWin::t_graphWin(QWidget* parent, const QVector<QWidget*>& plots) :
    50  QDialog(parent) {
     49t_graphWin::t_graphWin(QWidget* parent, const QVector<QWidget*>& plots,
     50                       const QwtInterval scaleInterval) :  QDialog(parent) {
    5151
    5252  this->setAttribute(Qt::WA_DeleteOnClose);
     
    7979   _colorScale->setTitle( title );
    8080
    81    QwtInterval interval(0.0, 1.0);
    82    _colorScale->setColorMap(interval, new t_colorMap());
     81   _colorScale->setColorMap(scaleInterval, new t_colorMap());
    8382
    8483   QwtLinearScaleEngine scaleEngine;
    8584   _colorScale->setScaleDiv(scaleEngine.transformation(),
    86       scaleEngine.divideScale(interval.minValue(), interval.maxValue(), 8, 5));
     85                            scaleEngine.divideScale(scaleInterval.minValue(),
     86                                                    scaleInterval.maxValue(),
     87                                                    8, 5));
    8788
    8889  // Layout
Note: See TracChangeset for help on using the changeset viewer.