- Timestamp:
- Oct 28, 2014, 10:07:42 AM (10 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r4671 r6262 41 41 #include <qwt_scale_widget.h> 42 42 #include <qwt_scale_engine.h> 43 #include <qwt_plot_renderer.h>44 43 45 44 #include "graphwin.h" … … 186 185 + fileInfo.completeBaseName() + ext; 187 186 187 QPalette palette = _canvas->palette(); 188 QColor oldColor = palette.color(QPalette::Window); 189 palette.setColor(QPalette::Window, Qt::white); 190 _canvas->setPalette(palette); 191 188 192 QImage image(_canvas->size(), QImage::Format_RGB32); 189 193 QPainter painter(&image); 190 194 _canvas->render(&painter); 191 195 image.save(fileName,"PNG"); 196 197 palette.setColor(QPalette::Window, oldColor); 198 _canvas->setPalette(palette); 192 199 } -
trunk/BNC/src/rinex/polarplot.cpp
r4359 r6262 19 19 #include <qwt_symbol.h> 20 20 #include <qwt_polar_grid.h> 21 #include <qwt_polar_canvas.h> 21 22 22 23 #include "polarplot.h" … … 47 48 _scaleInterval = scaleInterval; 48 49 49 setPlotBackground(Qt::white); 50 if (false) { 51 setPlotBackground(Qt::white); // sets the background of the circle only 52 } 53 else { 54 canvas()->setAutoFillBackground(true); 55 QPalette palette = canvas()->palette(); 56 palette.setColor(QPalette::Window, Qt::white); 57 canvas()->setPalette(palette); 58 } 50 59 51 60 setAzimuthOrigin(M_PI/2.0);
Note:
See TracChangeset
for help on using the changeset viewer.