Skip to content

Commit 4ed360d

Browse files
committed
COMP: patch to allow linking of pythonqt qui and uitools on windows: TODO: this is in the generated code, so the actual patch should be done in the generator itself
1 parent 25e31f3 commit 4ed360d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <PythonQt.h>
2+
#include <PythonQtSystem.h>
23
#include "com_trolltech_qt_gui0.h"
34
#include "com_trolltech_qt_gui1.h"
45
#include "com_trolltech_qt_gui2.h"
@@ -11,6 +12,8 @@
1112
#include "com_trolltech_qt_gui9.h"
1213
#include "com_trolltech_qt_gui10.h"
1314

15+
PYTHONQT_EXPORT void PythonQt_init_QtGui(PyObject* module);
16+
1417
static void* polymorphichandler_QStyleOption(const void *ptr, char **class_name)
1518
{
1619
Q_ASSERT(ptr != 0);

generated_cpp/com_trolltech_qt_uitools/com_trolltech_qt_uitools_init.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include <PythonQt.h>
2+
#include <PythonQtSystem.h>
23
#include "com_trolltech_qt_uitools0.h"
34

5+
PYTHONQT_EXPORT void PythonQt_init_QtUiTools(PyObject* module);
46

57
void PythonQt_init_QtUiTools(PyObject* module) {
68
PythonQt::priv()->registerClass(&QUiLoader::staticMetaObject, "QtUiTools", PythonQtCreateObject<PythonQtWrapper_QUiLoader>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QUiLoader>, module, 0);

0 commit comments

Comments
 (0)