Changeset 4356 in ntrip for trunk/BNC/src/rinex/graphwin.cpp
- Timestamp:
- Jun 24, 2012, 6:52:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r4349 r4356 47 47 // Constructor 48 48 //////////////////////////////////////////////////////////////////////////// 49 t_graphWin::t_graphWin(QWidget* parent, const QVector<QWidget*>& plots ) :50 QDialog(parent) {49 t_graphWin::t_graphWin(QWidget* parent, const QVector<QWidget*>& plots, 50 const QwtInterval scaleInterval) : QDialog(parent) { 51 51 52 52 this->setAttribute(Qt::WA_DeleteOnClose); … … 79 79 _colorScale->setTitle( title ); 80 80 81 QwtInterval interval(0.0, 1.0); 82 _colorScale->setColorMap(interval, new t_colorMap()); 81 _colorScale->setColorMap(scaleInterval, new t_colorMap()); 83 82 84 83 QwtLinearScaleEngine scaleEngine; 85 84 _colorScale->setScaleDiv(scaleEngine.transformation(), 86 scaleEngine.divideScale(interval.minValue(), interval.maxValue(), 8, 5)); 85 scaleEngine.divideScale(scaleInterval.minValue(), 86 scaleInterval.maxValue(), 87 8, 5)); 87 88 88 89 // Layout
Note:
See TracChangeset
for help on using the changeset viewer.