MCPcopy Create free account
hub / github.com/BrigJS/brig / printAllMeta

Function printAllMeta

src/utils.cpp:142–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers 2

DynamicQObjectMethod · 0.85
qt_metacallMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected