##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
com_trolltech_qt_opengl_init.cpp
15 lines | 890 B | text/x-c | CppLexer
#include <PythonQt.h>
#include "PythonQtWrapper_QGLColormap.h"
#include "PythonQtWrapper_QGLContext.h"
#include "PythonQtWrapper_QGLPixelBuffer.h"
#include "PythonQtWrapper_QGLFramebufferObject.h"
#include "PythonQtWrapper_QGLWidget.h"
void PythonQt_init_QtOpenGL() {
PythonQt::self()->registerCPPClass("QGLColormap", "", "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLColormap>);
PythonQt::self()->registerCPPClass("QGLContext", "", "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLContext>);
PythonQt::self()->registerCPPClass("QGLPixelBuffer", "", "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLPixelBuffer>);
PythonQt::self()->registerCPPClass("QGLFramebufferObject", "", "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLFramebufferObject>);
PythonQt::self()->registerClass(&QGLWidget::staticMetaObject, "QtOpenGL", PythonQtCreateObject<PythonQtWrapper_QGLWidget>);
}