StelMainGraphicsView.cpp   StelMainGraphicsView.cpp 
skipping to change at line 116 skipping to change at line 116
#endif #endif
#ifdef USE_STATIC_PLUGIN_QUASARS #ifdef USE_STATIC_PLUGIN_QUASARS
Q_IMPORT_PLUGIN(Quasars) Q_IMPORT_PLUGIN(Quasars)
#endif #endif
#ifdef USE_STATIC_PLUGIN_PULSARS #ifdef USE_STATIC_PLUGIN_PULSARS
Q_IMPORT_PLUGIN(Pulsars) Q_IMPORT_PLUGIN(Pulsars)
#endif #endif
#ifdef USE_STATIC_PLUGIN_EXOPLANETS
Q_IMPORT_PLUGIN(Exoplanets)
#endif
#ifdef USE_STATIC_PLUGIN_OBSERVABILITY
Q_IMPORT_PLUGIN(Observability)
#endif
// Initialize static variables // Initialize static variables
StelMainGraphicsView* StelMainGraphicsView::singleton = NULL; StelMainGraphicsView* StelMainGraphicsView::singleton = NULL;
class StelQGLWidget : public QGLWidget class StelQGLWidget : public QGLWidget
{ {
public: public:
StelQGLWidget(QGLContext* ctx, QWidget* parent) : QGLWidget(ctx, par ent) StelQGLWidget(QGLContext* ctx, QWidget* parent) : QGLWidget(ctx, par ent)
{ {
setAttribute(Qt::WA_PaintOnScreen); setAttribute(Qt::WA_PaintOnScreen);
setAttribute(Qt::WA_NoSystemBackground); setAttribute(Qt::WA_NoSystemBackground);
skipping to change at line 215 skipping to change at line 223
setViewport(glWidget); setViewport(glWidget);
// This line seems to cause font aliasing troubles on win32 // This line seems to cause font aliasing troubles on win32
// setOptimizationFlags(QGraphicsView::DontSavePainterState); // setOptimizationFlags(QGraphicsView::DontSavePainterState);
setScene(new QGraphicsScene(this)); setScene(new QGraphicsScene(this));
scene()->setItemIndexMethod(QGraphicsScene::NoIndex); scene()->setItemIndexMethod(QGraphicsScene::NoIndex);
backItem = new QGraphicsWidget(); backItem = new QGraphicsWidget();
backItem->setFocusPolicy(Qt::NoFocus); backItem->setFocusPolicy(Qt::NoFocus);
// Workaround (see Bug #940638) Although we have already explicitly
set
// LC_NUMERIC to "C" in main.cpp there seems to be a bug in OpenGL w
here
// it will silently reset LC_NUMERIC to the value of LC_ALL during O
penGL
// initialization. This has been observed on Ubuntu 11.10 under cert
ain
// circumstances, so here we set it again just to be on the safe sid
e.
setlocale(LC_NUMERIC, "C");
// End workaround
} }
StelMainGraphicsView::~StelMainGraphicsView() StelMainGraphicsView::~StelMainGraphicsView()
{ {
} }
void StelMainGraphicsView::init(QSettings* conf) void StelMainGraphicsView::init(QSettings* conf)
{ {
Q_ASSERT(glWidget->isValid()); Q_ASSERT(glWidget->isValid());
glWidget->makeCurrent(); glWidget->makeCurrent();
 End of changes. 2 change blocks. 
0 lines changed or deleted 21 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/