From 2c1b9f1547b3b86a04609c386983e3e7a5ba51eb Mon Sep 17 00:00:00 2001 From: pixhawk Date: Thu, 19 Aug 2010 09:07:58 +0200 Subject: [PATCH] Working on printing --- src/ui/QGCDataPlot2D.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/QGCDataPlot2D.cc b/src/ui/QGCDataPlot2D.cc index 303d5a1f3..381c45b25 100644 --- a/src/ui/QGCDataPlot2D.cc +++ b/src/ui/QGCDataPlot2D.cc @@ -116,7 +116,7 @@ void QGCDataPlot2D::print() QPrintDialog dialog(&printer); if ( dialog.exec() ) { - plot->setStyleSheet("QWidget { background-color: #FFFFFF; color: #000000; background-clip: border; font-size: 11pt;}"); + plot->setStyleSheet("QWidget { background-color: #FFFFFF; color: #000000; background-clip: border; font-size: 10pt;}"); plot->setCanvasBackground(Qt::white); QwtPlotPrintFilter filter; filter.color(Qt::white, QwtPlotPrintFilter::CanvasBackground); @@ -132,6 +132,8 @@ void QGCDataPlot2D::print() filter.setOptions(options); } plot->print(printer, filter); + plot->setStyleSheet("QWidget { background-color: #050508; color: #DDDDDF; background-clip: border; font-size: 11pt;}"); + //plot->setCanvasBackground(QColor(5, 5, 8)); } } -- 2.22.0