1
1
#include < PythonQt.h>
2
+ #include < PythonQtConversion.h>
2
3
#include " com_trolltech_qt_core0.h"
3
4
#include " com_trolltech_qt_core1.h"
4
5
#include " com_trolltech_qt_core2.h"
@@ -20,11 +21,11 @@ static void* polymorphichandler_QEvent(const void *ptr, const char **class_name)
20
21
return (QEvent*)object;
21
22
}
22
23
if (object->type () == QEvent::StateMachineSignal) {
23
- *class_name = " QStateMachine_SignalEvent " ;
24
+ *class_name = " QStateMachine__SignalEvent " ;
24
25
return (QStateMachine::SignalEvent*)object;
25
26
}
26
27
if (object->type () == QEvent::StateMachineWrapped) {
27
- *class_name = " QStateMachine_WrappedEvent " ;
28
+ *class_name = " QStateMachine__WrappedEvent " ;
28
29
return (QStateMachine::WrappedEvent*)object;
29
30
}
30
31
if (object->type () == QEvent::Timer) {
@@ -34,6 +35,7 @@ static void* polymorphichandler_QEvent(const void *ptr, const char **class_name)
34
35
return NULL ;
35
36
}
36
37
38
+
37
39
void PythonQt_init_QtCore (PyObject* module) {
38
40
PythonQt::priv ()->registerClass (&QAbstractAnimation::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QAbstractAnimation>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QAbstractAnimation>, module, 0 );
39
41
PythonQt::priv ()->registerClass (&QAbstractItemModel::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QAbstractItemModel>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QAbstractItemModel>, module, 0 );
@@ -45,7 +47,7 @@ PythonQt::priv()->registerCPPClass("QBasicTimer", "", "QtCore", PythonQtCreateOb
45
47
PythonQt::priv ()->registerClass (&QBuffer::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QBuffer>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QBuffer>, module, 0 );
46
48
PythonQt::priv ()->registerCPPClass (" QByteArrayMatcher" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QByteArrayMatcher>, NULL , module, 0 );
47
49
PythonQt::priv ()->registerCPPClass (" QChildEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QChildEvent>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QChildEvent>, module, 0 );
48
- PythonQt::priv ()->registerClass (&QCoreApplication::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QCoreApplication>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QCoreApplication> , module, 0 );
50
+ PythonQt::priv ()->registerClass (&QCoreApplication::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QCoreApplication>, NULL , module, 0 );
49
51
PythonQt::priv ()->registerCPPClass (" QCryptographicHash" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QCryptographicHash>, NULL , module, 0 );
50
52
PythonQt::priv ()->registerCPPClass (" QDataStream" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QDataStream>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QDataStream>, module, 0 );
51
53
PythonQt::priv ()->registerCPPClass (" QDir" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QDir>, NULL , module, PythonQt::Type_RichCompare);
@@ -63,6 +65,7 @@ PythonQt::priv()->registerClass(&QFileSystemWatcher::staticMetaObject, "QtCore",
63
65
PythonQt::priv ()->registerClass (&QFinalState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QFinalState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QFinalState>, module, 0 );
64
66
PythonQt::priv ()->registerClass (&QHistoryState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QHistoryState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHistoryState>, module, 0 );
65
67
PythonQt::priv ()->registerClass (&QIODevice::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QIODevice>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QIODevice>, module, 0 );
68
+ PythonQt::priv ()->registerClass (&QIdentityProxyModel::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QIdentityProxyModel>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QIdentityProxyModel>, module, 0 );
66
69
PythonQt::priv ()->registerClass (&QLibrary::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QLibrary>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QLibrary>, module, 0 );
67
70
PythonQt::priv ()->registerCPPClass (" QLibraryInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QLibraryInfo>, NULL , module, 0 );
68
71
PythonQt::priv ()->registerCPPClass (" QMetaClassInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMetaClassInfo>, NULL , module, 0 );
@@ -76,6 +79,7 @@ PythonQt::priv()->registerCPPClass("QMutex", "", "QtCore", PythonQtCreateObject<
76
79
PythonQt::priv ()->registerClass (&QObject::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QObject>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QObject>, module, 0 );
77
80
PythonQt::priv ()->registerClass (&QParallelAnimationGroup::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QParallelAnimationGroup>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QParallelAnimationGroup>, module, 0 );
78
81
PythonQt::priv ()->registerClass (&QPauseAnimation::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QPauseAnimation>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QPauseAnimation>, module, 0 );
82
+ PythonQt::priv ()->registerCPPClass (" QPersistentModelIndex" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QPersistentModelIndex>, NULL , module, PythonQt::Type_RichCompare);
79
83
PythonQt::priv ()->registerClass (&QProcess::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QProcess>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QProcess>, module, 0 );
80
84
PythonQt::priv ()->registerCPPClass (" QProcessEnvironment" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QProcessEnvironment>, NULL , module, PythonQt::Type_RichCompare);
81
85
PythonQt::priv ()->registerClass (&QPropertyAnimation::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QPropertyAnimation>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QPropertyAnimation>, module, 0 );
@@ -91,8 +95,8 @@ PythonQt::priv()->registerClass(&QSignalTransition::staticMetaObject, "QtCore",
91
95
PythonQt::priv ()->registerClass (&QSocketNotifier::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSocketNotifier>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSocketNotifier>, module, 0 );
92
96
PythonQt::priv ()->registerClass (&QState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QState>, module, 0 );
93
97
PythonQt::priv ()->registerClass (&QStateMachine::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QStateMachine>, module, 0 );
94
- PythonQt::priv ()->registerCPPClass (" QStateMachine::SignalEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine_SignalEvent >, NULL , module, 0 );
95
- PythonQt::priv ()->registerCPPClass (" QStateMachine::WrappedEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine_WrappedEvent >, NULL , module, 0 );
98
+ PythonQt::priv ()->registerCPPClass (" QStateMachine::SignalEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine__SignalEvent >, NULL , module, 0 );
99
+ PythonQt::priv ()->registerCPPClass (" QStateMachine::WrappedEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine__WrappedEvent >, NULL , module, 0 );
96
100
PythonQt::priv ()->registerCPPClass (" QStringMatcher" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStringMatcher>, NULL , module, 0 );
97
101
PythonQt::priv ()->registerCPPClass (" QSysInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSysInfo>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSysInfo>, module, 0 );
98
102
PythonQt::priv ()->registerCPPClass (" QSystemSemaphore" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSystemSemaphore>, NULL , module, 0 );
@@ -114,4 +118,7 @@ PythonQt::priv()->registerCPPClass("QXmlStreamEntityResolver", "", "QtCore", Pyt
114
118
PythonQt::priv ()->registerCPPClass (" QtConcurrent" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QtConcurrent>, NULL , module, 0 );
115
119
116
120
PythonQt::self ()->addPolymorphicHandler (" QEvent" , polymorphichandler_QEvent);
121
+
122
+ PythonQtRegisterListTemplateConverterForKnownClass (QList, QFileInfo);
123
+ PythonQtRegisterListTemplateConverterForKnownClass (QList, QModelIndex);
117
124
}
0 commit comments