11#include < PythonQt.h>
2+ #include < PythonQtConversion.h>
23#include " com_trolltech_qt_core0.h"
34#include " com_trolltech_qt_core1.h"
45#include " com_trolltech_qt_core2.h"
@@ -20,11 +21,11 @@ static void* polymorphichandler_QEvent(const void *ptr, const char **class_name)
2021 return (QEvent*)object;
2122 }
2223 if (object->type () == QEvent::StateMachineSignal) {
23- *class_name = " QStateMachine_SignalEvent " ;
24+ *class_name = " QStateMachine__SignalEvent " ;
2425 return (QStateMachine::SignalEvent*)object;
2526 }
2627 if (object->type () == QEvent::StateMachineWrapped) {
27- *class_name = " QStateMachine_WrappedEvent " ;
28+ *class_name = " QStateMachine__WrappedEvent " ;
2829 return (QStateMachine::WrappedEvent*)object;
2930 }
3031 if (object->type () == QEvent::Timer) {
@@ -34,6 +35,7 @@ static void* polymorphichandler_QEvent(const void *ptr, const char **class_name)
3435 return NULL ;
3536}
3637
38+
3739void PythonQt_init_QtCore (PyObject* module ) {
3840PythonQt::priv ()->registerClass (&QAbstractAnimation::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QAbstractAnimation>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QAbstractAnimation>, module , 0 );
3941PythonQt::priv ()->registerClass (&QAbstractItemModel::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QAbstractItemModel>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QAbstractItemModel>, module , 0 );
@@ -45,7 +47,7 @@ PythonQt::priv()->registerCPPClass("QBasicTimer", "", "QtCore", PythonQtCreateOb
4547PythonQt::priv ()->registerClass (&QBuffer::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QBuffer>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QBuffer>, module , 0 );
4648PythonQt::priv ()->registerCPPClass (" QByteArrayMatcher" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QByteArrayMatcher>, NULL , module , 0 );
4749PythonQt::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 );
4951PythonQt::priv ()->registerCPPClass (" QCryptographicHash" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QCryptographicHash>, NULL , module , 0 );
5052PythonQt::priv ()->registerCPPClass (" QDataStream" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QDataStream>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QDataStream>, module , 0 );
5153PythonQt::priv ()->registerCPPClass (" QDir" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QDir>, NULL , module , PythonQt::Type_RichCompare);
@@ -63,6 +65,7 @@ PythonQt::priv()->registerClass(&QFileSystemWatcher::staticMetaObject, "QtCore",
6365PythonQt::priv ()->registerClass (&QFinalState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QFinalState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QFinalState>, module , 0 );
6466PythonQt::priv ()->registerClass (&QHistoryState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QHistoryState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHistoryState>, module , 0 );
6567PythonQt::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 );
6669PythonQt::priv ()->registerClass (&QLibrary::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QLibrary>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QLibrary>, module , 0 );
6770PythonQt::priv ()->registerCPPClass (" QLibraryInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QLibraryInfo>, NULL , module , 0 );
6871PythonQt::priv ()->registerCPPClass (" QMetaClassInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMetaClassInfo>, NULL , module , 0 );
@@ -76,6 +79,7 @@ PythonQt::priv()->registerCPPClass("QMutex", "", "QtCore", PythonQtCreateObject<
7679PythonQt::priv ()->registerClass (&QObject::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QObject>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QObject>, module , 0 );
7780PythonQt::priv ()->registerClass (&QParallelAnimationGroup::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QParallelAnimationGroup>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QParallelAnimationGroup>, module , 0 );
7881PythonQt::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);
7983PythonQt::priv ()->registerClass (&QProcess::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QProcess>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QProcess>, module , 0 );
8084PythonQt::priv ()->registerCPPClass (" QProcessEnvironment" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QProcessEnvironment>, NULL , module , PythonQt::Type_RichCompare);
8185PythonQt::priv ()->registerClass (&QPropertyAnimation::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QPropertyAnimation>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QPropertyAnimation>, module , 0 );
@@ -91,8 +95,8 @@ PythonQt::priv()->registerClass(&QSignalTransition::staticMetaObject, "QtCore",
9195PythonQt::priv ()->registerClass (&QSocketNotifier::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSocketNotifier>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSocketNotifier>, module , 0 );
9296PythonQt::priv ()->registerClass (&QState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QState>, module , 0 );
9397PythonQt::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 );
96100PythonQt::priv ()->registerCPPClass (" QStringMatcher" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStringMatcher>, NULL , module , 0 );
97101PythonQt::priv ()->registerCPPClass (" QSysInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSysInfo>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSysInfo>, module , 0 );
98102PythonQt::priv ()->registerCPPClass (" QSystemSemaphore" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSystemSemaphore>, NULL , module , 0 );
@@ -114,4 +118,7 @@ PythonQt::priv()->registerCPPClass("QXmlStreamEntityResolver", "", "QtCore", Pyt
114118PythonQt::priv ()->registerCPPClass (" QtConcurrent" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QtConcurrent>, NULL , module , 0 );
115119
116120PythonQt::self ()->addPolymorphicHandler (" QEvent" , polymorphichandler_QEvent);
121+
122+ PythonQtRegisterListTemplateConverterForKnownClass (QList, QFileInfo);
123+ PythonQtRegisterListTemplateConverterForKnownClass (QList, QModelIndex);
117124}
0 commit comments