Commit 2c1b9f15 authored by pixhawk's avatar pixhawk

Working on printing

parent 315dfdcc
...@@ -116,7 +116,7 @@ void QGCDataPlot2D::print() ...@@ -116,7 +116,7 @@ void QGCDataPlot2D::print()
QPrintDialog dialog(&printer); QPrintDialog dialog(&printer);
if ( dialog.exec() ) 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); plot->setCanvasBackground(Qt::white);
QwtPlotPrintFilter filter; QwtPlotPrintFilter filter;
filter.color(Qt::white, QwtPlotPrintFilter::CanvasBackground); filter.color(Qt::white, QwtPlotPrintFilter::CanvasBackground);
...@@ -132,6 +132,8 @@ void QGCDataPlot2D::print() ...@@ -132,6 +132,8 @@ void QGCDataPlot2D::print()
filter.setOptions(options); filter.setOptions(options);
} }
plot->print(printer, filter); plot->print(printer, filter);
plot->setStyleSheet("QWidget { background-color: #050508; color: #DDDDDF; background-clip: border; font-size: 11pt;}");
//plot->setCanvasBackground(QColor(5, 5, 8));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment