Changeset 4631 in ntrip


Ignore:
Timestamp:
Sep 1, 2012, 3:01:56 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4630 r4631  
    22#include <QtSvg>
    33
     4#include <qwt_symbol.h>
    45#include <qwt_plot.h>
    56#include <qwt_plot_svgitem.h>
     
    910#include <qwt_plot_panner.h>
    1011#include <qwt_plot_magnifier.h>
    11 #include <qwt_symbol.h>
     12#include <qwt_plot_renderer.h>
    1213
    1314#include "bncmap.h"
     
    9596  QPrinter printer;
    9697  QPrintDialog* dialog = new QPrintDialog(&printer, this);
    97   dialog->setWindowTitle(tr("Print Plot"));
     98  dialog->setWindowTitle(tr("Print Map"));
    9899  if (dialog->exec() != QDialog::Accepted) {
    99100    return;
    100101  }
    101102  else {
    102     qDebug() << "Print Map";
     103    QwtPlotRenderer renderer;
     104    renderer.setDiscardFlag(QwtPlotRenderer::DiscardBackground, false);
     105    renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames, true);
     106    renderer.renderTo(_mapPlot, printer);
    103107  }
    104108}
Note: See TracChangeset for help on using the changeset viewer.