Changeset 4585 in ntrip for trunk/BNC/src/rinex/availplot.cpp


Ignore:
Timestamp:
Aug 29, 2012, 6:08:41 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4584 r4585  
    11
    2 #include <qwt_scale_engine.h>
    32#include <qwt_symbol.h>
    43#include <qwt_plot_curve.h>
    5 #include <qwt_plot_grid.h>
    6 #include <qwt_legend.h>
    74
    85#include "availplot.h"
     
    1411
    1512  setCanvasBackground(QColor(Qt::white));
    16 
    17   // Legend
    18   // ------
    19   QwtLegend* legend = new QwtLegend;
    20   insertLegend(legend, QwtPlot::RightLegend);
    21 
    22 
    23     // grid
    24     QwtPlotGrid *grid = new QwtPlotGrid;
    25     grid->enableXMin(true);
    26     grid->setMajPen(QPen(Qt::gray, 0, Qt::DotLine));
    27     grid->setMinPen(QPen(Qt::gray, 0 , Qt::DotLine));
    28     grid->attach(this);
    2913
    3014  // Axes
     
    5741    curve->setSymbol( symbol );
    5842    curve->setStyle( QwtPlotCurve::NoCurve );
    59     curve->setLegendAttribute( QwtPlotCurve::LegendShowSymbol );
    6043    curve->setXAxis(QwtPlot::xBottom);
    6144    curve->setYAxis(QwtPlot::yLeft);
Note: See TracChangeset for help on using the changeset viewer.