Changeset 6262 in ntrip for trunk/BNC


Ignore:
Timestamp:
Oct 28, 2014, 10:07:42 AM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/graphwin.cpp

    r4671 r6262  
    4141#include <qwt_scale_widget.h>
    4242#include <qwt_scale_engine.h>
    43 #include <qwt_plot_renderer.h>
    4443
    4544#include "graphwin.h"
     
    186185                   + fileInfo.completeBaseName() + ext;
    187186
     187  QPalette palette = _canvas->palette();
     188  QColor oldColor = palette.color(QPalette::Window);
     189  palette.setColor(QPalette::Window, Qt::white);
     190  _canvas->setPalette(palette);
     191
    188192  QImage image(_canvas->size(), QImage::Format_RGB32);
    189193  QPainter painter(&image);
    190194  _canvas->render(&painter);
    191195  image.save(fileName,"PNG");
     196
     197  palette.setColor(QPalette::Window, oldColor);
     198  _canvas->setPalette(palette);
    192199}
  • trunk/BNC/src/rinex/polarplot.cpp

    r4359 r6262  
    1919#include <qwt_symbol.h>
    2020#include <qwt_polar_grid.h>
     21#include <qwt_polar_canvas.h>
    2122
    2223#include "polarplot.h"
     
    4748  _scaleInterval = scaleInterval;
    4849
    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  }
    5059
    5160  setAzimuthOrigin(M_PI/2.0);
Note: See TracChangeset for help on using the changeset viewer.