Revert "Fix for the context"

This reverts commit 552aaa159f.

Conflicts:
	Linear_cell_complex/examples/Linear_cell_complex/linear_cell_complex_3_viewer_qt.h
This commit is contained in:
Maxime Gimeno 2016-02-11 14:16:04 +01:00
parent b8599c199a
commit 0a37521263
11 changed files with 15 additions and 15 deletions

View File

@ -5,7 +5,7 @@
#include <CGAL/Qt/CreateOpenGLContext.h>
Viewer::Viewer(QWidget* parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent),
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent),
m_pScene(NULL),
m_custom_mouse(false)
{

View File

@ -5,7 +5,7 @@
#include "CGAL/Qt/CreateOpenGLContext.h"
Viewer::Viewer(QWidget* parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
{
are_buffers_initialized = false;
}

View File

@ -7,7 +7,7 @@
Viewer::Viewer(QWidget* parent )
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
{
extension_is_found = false;
}

View File

@ -23,9 +23,9 @@
#include <QGLContext>
namespace CGAL{
namespace Qt{
inline QGLContext* createOpenGLContext(QObject* parent)
inline QGLContext* createOpenGLContext()
{
QOpenGLContext *context = new QOpenGLContext(parent);
QOpenGLContext *context = new QOpenGLContext();
QSurfaceFormat format;
format.setVersion(2,1);
format.setProfile(QSurfaceFormat::CompatibilityProfile);
@ -35,9 +35,9 @@ inline QGLContext* createOpenGLContext(QObject* parent)
return result;
}
inline QGLContext* createOpenGLMSAAContext(QObject* parent)
inline QGLContext* createOpenGLMSAAContext()
{
QOpenGLContext *context = new QOpenGLContext(parent);
QOpenGLContext *context = new QOpenGLContext();
QSurfaceFormat format;
format.setVersion(2,1);
format.setProfile(QSurfaceFormat::CompatibilityProfile);

View File

@ -28,7 +28,7 @@
#include <QDebug>
Viewer::Viewer(QWidget* parent)
: QGLViewer(CGAL::Qt::createOpenGLMSAAContext(parent),parent), wireframe(false),
: QGLViewer(CGAL::Qt::createOpenGLMSAAContext(),parent), wireframe(false),
flatShading(true), edges(true), vertices(true),
m_previous_scene_empty(true), are_buffers_initialized(false)
{

View File

@ -153,8 +153,8 @@ class SimpleLCCViewerQt : public QGLViewer, public QOpenGLFunctions_2_1
public:
// Constructor/Destructor
SimpleLCCViewerQt(LCC& alcc, QObject* parent) :
QGLViewer(CGAL::Qt::createOpenGLContext(parent)),
SimpleLCCViewerQt(LCC& alcc) :
QGLViewer(CGAL::Qt::createOpenGLContext()),
lcc(alcc),
wireframe(false),
flatShading(true),

View File

@ -3,7 +3,7 @@
#include <CGAL/Qt/CreateOpenGLContext.h>
Viewer::Viewer(QWidget* parent, bool antialiasing)
: QGLViewer(CGAL::Qt::createOpenGLContext(parent), parent),
: QGLViewer(CGAL::Qt::createOpenGLContext(), parent),
scene(0),
antialiasing(antialiasing),
twosides(false),

View File

@ -2,7 +2,7 @@
#include <CGAL/Qt/CreateOpenGLContext.h>
Viewer::Viewer(QWidget *parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
{}
Viewer::~Viewer()
{}

View File

@ -22,7 +22,7 @@ class Viewer : public QGLViewer, QOpenGLFunctions_2_1 {
int nr_of_facets;
public:
Viewer(QWidget* parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(parent), parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(), parent)
{}
~Viewer()
{

View File

@ -64,7 +64,7 @@ public:
NB_OF_PROGRAMS /** Holds the number of different programs in this enum.*/
};
Viewer_interface(QWidget* parent) : QGLViewer(CGAL::Qt::createOpenGLContext(parent), parent) {}
Viewer_interface(QWidget* parent) : QGLViewer(CGAL::Qt::createOpenGLContext(), parent) {}
virtual ~Viewer_interface() {}
//! Sets the scene for the viewer.

View File

@ -24,7 +24,7 @@ class Viewer : public QGLViewer, QOpenGLFunctions_2_1 {
public:
Viewer(QWidget* parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
, m_showAxis(false)
, m_showVertex(true)
, m_showDEdge(true)