com_trolltech_qt_svg_init.cpp
13 lines
| 859 B
| text/x-c
|
CppLexer
florianlink
|
r13 | #include <PythonQt.h> | ||
#include "PythonQtWrapper_QSvgRenderer.h" | ||||
florianlink
|
r28 | #include "PythonQtWrapper_QSvgGenerator.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QSvgWidget.h" | ||
florianlink
|
r28 | |||
florianlink
|
r13 | void PythonQt_init_QtSvg() { | ||
florianlink
|
r28 | PythonQt::self()->registerClass(&QSvgRenderer::staticMetaObject, "QtSvg", PythonQtCreateObject<PythonQtWrapper_QSvgRenderer>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSvgRenderer>); | ||
florianlink
|
r24 | PythonQt::self()->registerCPPClass("QSvgGenerator", "", "QtSvg", PythonQtCreateObject<PythonQtWrapper_QSvgGenerator>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSvgGenerator>); | ||
PythonQt::self()->addParentClass("QSvgGenerator", "QPaintDevice",PythonQtUpcastingOffset<QSvgGenerator,QPaintDevice>()); | ||||
PythonQt::self()->registerClass(&QSvgWidget::staticMetaObject, "QtSvg", PythonQtCreateObject<PythonQtWrapper_QSvgWidget>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSvgWidget>); | ||||
florianlink
|
r13 | |||
} | ||||