Changeset 4631 in ntrip
- Timestamp:
- Sep 1, 2012, 3:01:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncmap_svg.cpp
r4630 r4631 2 2 #include <QtSvg> 3 3 4 #include <qwt_symbol.h> 4 5 #include <qwt_plot.h> 5 6 #include <qwt_plot_svgitem.h> … … 9 10 #include <qwt_plot_panner.h> 10 11 #include <qwt_plot_magnifier.h> 11 #include <qwt_ symbol.h>12 #include <qwt_plot_renderer.h> 12 13 13 14 #include "bncmap.h" … … 95 96 QPrinter printer; 96 97 QPrintDialog* dialog = new QPrintDialog(&printer, this); 97 dialog->setWindowTitle(tr("Print Plot"));98 dialog->setWindowTitle(tr("Print Map")); 98 99 if (dialog->exec() != QDialog::Accepted) { 99 100 return; 100 101 } 101 102 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); 103 107 } 104 108 }
Note:
See TracChangeset
for help on using the changeset viewer.