Changeset 4634 in ntrip


Ignore:
Timestamp:
Sep 1, 2012, 6:47:48 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4631 r4634  
    99#include <qwt_plot_canvas.h>
    1010#include <qwt_plot_panner.h>
     11#include <qwt_plot_zoomer.h>
    1112#include <qwt_plot_magnifier.h>
    1213#include <qwt_plot_renderer.h>
     
    2223  _mapPlot = new QwtPlot();
    2324
    24   (void)new QwtPlotPanner(_mapPlot->canvas());
    25   (void)new QwtPlotMagnifier(_mapPlot->canvas());
     25  _mapPlot->setAxisScale(QwtPlot::xBottom, -180.0, 180.0);
     26  _mapPlot->setAxisScale(QwtPlot::yLeft,    -90.0,  90.0);
     27
     28  //  (void)new QwtPlotPanner(_mapPlot->canvas());
     29  //  (void)new QwtPlotMagnifier(_mapPlot->canvas());
     30  (void)new QwtPlotZoomer(_mapPlot->canvas());
    2631
    2732  _mapPlot->canvas()->setFocusPolicy(Qt::WheelFocus);
Note: See TracChangeset for help on using the changeset viewer.