@@ -7,30 +7,30 @@ static void* polymorphichandler_QEvent(const void *ptr, const char **class_name)
77{
88 Q_ASSERT (ptr != 0 );
99 QEvent *object = (QEvent *)ptr;
10- if (object->type () == QEvent::None) {
11- *class_name = " QEvent" ;
12- return (QEvent*)object;
13- }
1410 if (object->type () == QEvent::ChildAdded || object->type () == QEvent::ChildPolished || object->type () == QEvent::ChildRemoved) {
1511 *class_name = " QChildEvent" ;
1612 return (QChildEvent*)object;
1713 }
18- if (object->type () == QEvent::StateMachineWrapped) {
19- *class_name = " QStateMachine_WrappedEvent" ;
20- return (QStateMachine::WrappedEvent*)object;
14+ if (object->type () == QEvent::DynamicPropertyChange) {
15+ *class_name = " QDynamicPropertyChangeEvent" ;
16+ return (QDynamicPropertyChangeEvent*)object;
17+ }
18+ if (object->type () == QEvent::None) {
19+ *class_name = " QEvent" ;
20+ return (QEvent*)object;
2121 }
2222 if (object->type () == QEvent::StateMachineSignal) {
2323 *class_name = " QStateMachine_SignalEvent" ;
2424 return (QStateMachine::SignalEvent*)object;
2525 }
26+ if (object->type () == QEvent::StateMachineWrapped) {
27+ *class_name = " QStateMachine_WrappedEvent" ;
28+ return (QStateMachine::WrappedEvent*)object;
29+ }
2630 if (object->type () == QEvent::Timer) {
2731 *class_name = " QTimerEvent" ;
2832 return (QTimerEvent*)object;
2933 }
30- if (object->type () == QEvent::DynamicPropertyChange) {
31- *class_name = " QDynamicPropertyChangeEvent" ;
32- return (QDynamicPropertyChangeEvent*)object;
33- }
3434 return NULL ;
3535}
3636
@@ -52,6 +52,7 @@ PythonQt::priv()->registerCPPClass("QDir", "", "QtCore", PythonQtCreateObject<Py
5252PythonQt::priv ()->registerCPPClass (" QDirIterator" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QDirIterator>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QDirIterator>, module , 0 );
5353PythonQt::priv ()->registerCPPClass (" QDynamicPropertyChangeEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QDynamicPropertyChangeEvent>, NULL , module , 0 );
5454PythonQt::priv ()->registerCPPClass (" QEasingCurve" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QEasingCurve>, NULL , module , PythonQt::Type_RichCompare);
55+ PythonQt::priv ()->registerCPPClass (" QElapsedTimer" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QElapsedTimer>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QElapsedTimer>, module , PythonQt::Type_RichCompare);
5556PythonQt::priv ()->registerCPPClass (" QEvent" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QEvent>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QEvent>, module , 0 );
5657PythonQt::priv ()->registerClass (&QEventLoop::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QEventLoop>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QEventLoop>, module , 0 );
5758PythonQt::priv ()->registerClass (&QEventTransition::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QEventTransition>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QEventTransition>, module , 0 );
@@ -62,7 +63,13 @@ PythonQt::priv()->registerClass(&QFileSystemWatcher::staticMetaObject, "QtCore",
6263PythonQt::priv ()->registerClass (&QFinalState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QFinalState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QFinalState>, module , 0 );
6364PythonQt::priv ()->registerClass (&QHistoryState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QHistoryState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHistoryState>, module , 0 );
6465PythonQt::priv ()->registerClass (&QIODevice::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QIODevice>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QIODevice>, module , 0 );
66+ PythonQt::priv ()->registerClass (&QLibrary::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QLibrary>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QLibrary>, module , 0 );
6567PythonQt::priv ()->registerCPPClass (" QLibraryInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QLibraryInfo>, NULL , module , 0 );
68+ PythonQt::priv ()->registerCPPClass (" QMetaClassInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMetaClassInfo>, NULL , module , 0 );
69+ PythonQt::priv ()->registerCPPClass (" QMetaEnum" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMetaEnum>, NULL , module , 0 );
70+ PythonQt::priv ()->registerCPPClass (" QMetaMethod" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMetaMethod>, NULL , module , 0 );
71+ PythonQt::priv ()->registerCPPClass (" QMetaProperty" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMetaProperty>, NULL , module , 0 );
72+ PythonQt::priv ()->registerCPPClass (" QMetaType" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMetaType>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QMetaType>, module , 0 );
6673PythonQt::priv ()->registerClass (&QMimeData::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMimeData>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QMimeData>, module , 0 );
6774PythonQt::priv ()->registerCPPClass (" QModelIndex" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QModelIndex>, NULL , module , PythonQt::Type_RichCompare);
6875PythonQt::priv ()->registerCPPClass (" QMutex" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMutex>, NULL , module , 0 );
@@ -73,10 +80,12 @@ PythonQt::priv()->registerClass(&QProcess::staticMetaObject, "QtCore", PythonQtC
7380PythonQt::priv ()->registerCPPClass (" QProcessEnvironment" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QProcessEnvironment>, NULL , module , PythonQt::Type_RichCompare);
7481PythonQt::priv ()->registerClass (&QPropertyAnimation::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QPropertyAnimation>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QPropertyAnimation>, module , 0 );
7582PythonQt::priv ()->registerCPPClass (" QReadWriteLock" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QReadWriteLock>, NULL , module , 0 );
83+ PythonQt::priv ()->registerCPPClass (" QResource" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QResource>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QResource>, module , 0 );
7684PythonQt::priv ()->registerCPPClass (" QRunnable" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QRunnable>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QRunnable>, module , 0 );
7785PythonQt::priv ()->registerCPPClass (" QSemaphore" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSemaphore>, NULL , module , 0 );
7886PythonQt::priv ()->registerClass (&QSequentialAnimationGroup::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSequentialAnimationGroup>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSequentialAnimationGroup>, module , 0 );
7987PythonQt::priv ()->registerClass (&QSettings::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSettings>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSettings>, module , 0 );
88+ PythonQt::priv ()->registerClass (&QSharedMemory::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSharedMemory>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSharedMemory>, module , 0 );
8089PythonQt::priv ()->registerClass (&QSignalMapper::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSignalMapper>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSignalMapper>, module , 0 );
8190PythonQt::priv ()->registerClass (&QSignalTransition::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSignalTransition>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSignalTransition>, module , 0 );
8291PythonQt::priv ()->registerClass (&QSocketNotifier::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSocketNotifier>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSocketNotifier>, module , 0 );
@@ -85,6 +94,7 @@ PythonQt::priv()->registerClass(&QStateMachine::staticMetaObject, "QtCore", Pyth
8594PythonQt::priv ()->registerCPPClass (" QStateMachine::SignalEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine_SignalEvent>, NULL , module , 0 );
8695PythonQt::priv ()->registerCPPClass (" QStateMachine::WrappedEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine_WrappedEvent>, NULL , module , 0 );
8796PythonQt::priv ()->registerCPPClass (" QStringMatcher" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStringMatcher>, NULL , module , 0 );
97+ PythonQt::priv ()->registerCPPClass (" QSysInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSysInfo>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSysInfo>, module , 0 );
8898PythonQt::priv ()->registerCPPClass (" QSystemSemaphore" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSystemSemaphore>, NULL , module , 0 );
8999PythonQt::priv ()->registerClass (&QTemporaryFile::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QTemporaryFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QTemporaryFile>, module , 0 );
90100PythonQt::priv ()->registerCPPClass (" QTextBoundaryFinder" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QTextBoundaryFinder>, NULL , module , 0 );
0 commit comments