@@ -7,30 +7,30 @@ static void* polymorphichandler_QEvent(const void *ptr, const char **class_name)
7
7
{
8
8
Q_ASSERT (ptr != 0 );
9
9
QEvent *object = (QEvent *)ptr;
10
- if (object->type () == QEvent::None) {
11
- *class_name = " QEvent" ;
12
- return (QEvent*)object;
13
- }
14
10
if (object->type () == QEvent::ChildAdded || object->type () == QEvent::ChildPolished || object->type () == QEvent::ChildRemoved) {
15
11
*class_name = " QChildEvent" ;
16
12
return (QChildEvent*)object;
17
13
}
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;
21
21
}
22
22
if (object->type () == QEvent::StateMachineSignal) {
23
23
*class_name = " QStateMachine_SignalEvent" ;
24
24
return (QStateMachine::SignalEvent*)object;
25
25
}
26
+ if (object->type () == QEvent::StateMachineWrapped) {
27
+ *class_name = " QStateMachine_WrappedEvent" ;
28
+ return (QStateMachine::WrappedEvent*)object;
29
+ }
26
30
if (object->type () == QEvent::Timer) {
27
31
*class_name = " QTimerEvent" ;
28
32
return (QTimerEvent*)object;
29
33
}
30
- if (object->type () == QEvent::DynamicPropertyChange) {
31
- *class_name = " QDynamicPropertyChangeEvent" ;
32
- return (QDynamicPropertyChangeEvent*)object;
33
- }
34
34
return NULL ;
35
35
}
36
36
@@ -52,6 +52,7 @@ PythonQt::priv()->registerCPPClass("QDir", "", "QtCore", PythonQtCreateObject<Py
52
52
PythonQt::priv ()->registerCPPClass (" QDirIterator" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QDirIterator>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QDirIterator>, module , 0 );
53
53
PythonQt::priv ()->registerCPPClass (" QDynamicPropertyChangeEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QDynamicPropertyChangeEvent>, NULL , module , 0 );
54
54
PythonQt::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);
55
56
PythonQt::priv ()->registerCPPClass (" QEvent" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QEvent>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QEvent>, module , 0 );
56
57
PythonQt::priv ()->registerClass (&QEventLoop::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QEventLoop>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QEventLoop>, module , 0 );
57
58
PythonQt::priv ()->registerClass (&QEventTransition::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QEventTransition>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QEventTransition>, module , 0 );
@@ -62,7 +63,13 @@ PythonQt::priv()->registerClass(&QFileSystemWatcher::staticMetaObject, "QtCore",
62
63
PythonQt::priv ()->registerClass (&QFinalState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QFinalState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QFinalState>, module , 0 );
63
64
PythonQt::priv ()->registerClass (&QHistoryState::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QHistoryState>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QHistoryState>, module , 0 );
64
65
PythonQt::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 );
65
67
PythonQt::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 );
66
73
PythonQt::priv ()->registerClass (&QMimeData::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMimeData>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QMimeData>, module , 0 );
67
74
PythonQt::priv ()->registerCPPClass (" QModelIndex" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QModelIndex>, NULL , module , PythonQt::Type_RichCompare);
68
75
PythonQt::priv ()->registerCPPClass (" QMutex" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QMutex>, NULL , module , 0 );
@@ -73,10 +80,12 @@ PythonQt::priv()->registerClass(&QProcess::staticMetaObject, "QtCore", PythonQtC
73
80
PythonQt::priv ()->registerCPPClass (" QProcessEnvironment" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QProcessEnvironment>, NULL , module , PythonQt::Type_RichCompare);
74
81
PythonQt::priv ()->registerClass (&QPropertyAnimation::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QPropertyAnimation>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QPropertyAnimation>, module , 0 );
75
82
PythonQt::priv ()->registerCPPClass (" QReadWriteLock" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QReadWriteLock>, NULL , module , 0 );
83
+ PythonQt::priv ()->registerCPPClass (" QResource" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QResource>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QResource>, module , 0 );
76
84
PythonQt::priv ()->registerCPPClass (" QRunnable" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QRunnable>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QRunnable>, module , 0 );
77
85
PythonQt::priv ()->registerCPPClass (" QSemaphore" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSemaphore>, NULL , module , 0 );
78
86
PythonQt::priv ()->registerClass (&QSequentialAnimationGroup::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSequentialAnimationGroup>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSequentialAnimationGroup>, module , 0 );
79
87
PythonQt::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 );
80
89
PythonQt::priv ()->registerClass (&QSignalMapper::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSignalMapper>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSignalMapper>, module , 0 );
81
90
PythonQt::priv ()->registerClass (&QSignalTransition::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSignalTransition>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSignalTransition>, module , 0 );
82
91
PythonQt::priv ()->registerClass (&QSocketNotifier::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSocketNotifier>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSocketNotifier>, module , 0 );
@@ -85,6 +94,7 @@ PythonQt::priv()->registerClass(&QStateMachine::staticMetaObject, "QtCore", Pyth
85
94
PythonQt::priv ()->registerCPPClass (" QStateMachine::SignalEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine_SignalEvent>, NULL , module , 0 );
86
95
PythonQt::priv ()->registerCPPClass (" QStateMachine::WrappedEvent" , " QEvent" , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStateMachine_WrappedEvent>, NULL , module , 0 );
87
96
PythonQt::priv ()->registerCPPClass (" QStringMatcher" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QStringMatcher>, NULL , module , 0 );
97
+ PythonQt::priv ()->registerCPPClass (" QSysInfo" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSysInfo>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSysInfo>, module , 0 );
88
98
PythonQt::priv ()->registerCPPClass (" QSystemSemaphore" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QSystemSemaphore>, NULL , module , 0 );
89
99
PythonQt::priv ()->registerClass (&QTemporaryFile::staticMetaObject, " QtCore" , PythonQtCreateObject<PythonQtWrapper_QTemporaryFile>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QTemporaryFile>, module , 0 );
90
100
PythonQt::priv ()->registerCPPClass (" QTextBoundaryFinder" , " " , " QtCore" , PythonQtCreateObject<PythonQtWrapper_QTextBoundaryFinder>, NULL , module , 0 );
0 commit comments