@@ -215,8 +215,9 bool PythonQtClassInfo::lookForMethodAndCache(const char* memberName) | |||
|
215 | 215 | int numMethods = _meta->methodCount(); |
|
216 | 216 | for (int i = 0; i < numMethods; i++) { |
|
217 | 217 | QMetaMethod m = _meta->method(i); |
|
218 | if ((m.methodType() == QMetaMethod::Method || | |
|
219 |
m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) |
|
|
218 | if (((m.methodType() == QMetaMethod::Method || | |
|
219 | m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) | |
|
220 | || m.methodType()==QMetaMethod::Signal) { | |
|
220 | 221 | |
|
221 | 222 | const char* sigStart = m.signature(); |
|
222 | 223 | // find the first '(' |
@@ -471,8 +472,9 QStringList PythonQtClassInfo::memberList(bool metaOnly) | |||
|
471 | 472 | bool skipQObj = !_isQObject; |
|
472 | 473 | for (int i = skipQObj?QObject::staticMetaObject.methodCount():0; i < numMethods; i++) { |
|
473 | 474 | QMetaMethod m = _meta->method(i); |
|
474 | if ((m.methodType() == QMetaMethod::Method || | |
|
475 |
m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) |
|
|
475 | if (((m.methodType() == QMetaMethod::Method || | |
|
476 | m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) | |
|
477 | || m.methodType()==QMetaMethod::Signal) { | |
|
476 | 478 | QByteArray signa(m.signature()); |
|
477 | 479 | signa = signa.left(signa.indexOf('(')); |
|
478 | 480 | l << signa; |
General Comments 0
You need to be logged in to leave comments.
Login now