| 140 | } |
| 141 | |
| 142 | void printAllMeta(const QMetaObject *meta) |
| 143 | { |
| 144 | |
| 145 | printf("== Print Meta: %s\n", meta->className()); |
| 146 | |
| 147 | // Properties |
| 148 | for (int i = meta->propertyOffset(); i < meta->propertyCount(); ++i) { |
| 149 | QMetaProperty property = meta->property(i); |
| 150 | const char *propName = property.name(); |
| 151 | printf("=== property [%d]: %s\n", i, propName); |
| 152 | } |
| 153 | |
| 154 | // Properties |
| 155 | for (int i = meta->methodOffset(); i < meta->methodCount(); ++i) { |
| 156 | QMetaMethod method = meta->method(i); |
| 157 | const char *methodName = method.name(); |
| 158 | |
| 159 | if (method.methodType() == QMetaMethod::Signal) { |
| 160 | printf("=== signal [%d]: %s %s %d\n", i, methodName, method.methodSignature().data(), method.returnType()); |
| 161 | } else { |
| 162 | printf("=== method [%d]: %s %s %d\n", i, methodName, method.methodSignature().data(), method.returnType()); |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | } |
no outgoing calls
no test coverage detected