@@ -57,6 +57,9 @@ void ShellHeaderGenerator::writeFieldAccessors(QTextStream &s, const AbstractMet
57
57
const AbstractMetaFunction *setter = field->setter ();
58
58
const AbstractMetaFunction *getter = field->getter ();
59
59
60
+ // Uuid data4 did not work
61
+ if (field->enclosingClass ()->name ()==" QUuid" && setter->name ()==" data4" ) return ;
62
+
60
63
if (!field->type ()->isConstant ()) {
61
64
writeFunctionSignature (s, setter, 0 , QString (),
62
65
Option (ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | ShowStatic | UnderscoreSpaces));
@@ -257,9 +260,9 @@ void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c
257
260
s << endl;
258
261
}
259
262
if (meta_class->name ()==" QTreeWidgetItem" ) {
260
- s << " bool hasOwner (QTreeWidgetItem* theWrappedObject) { return theWrappedObject->treeWidget()!=NULL || theWrappedObject->parent()!=NULL; }" << endl;
263
+ s << " bool py_hasOwner (QTreeWidgetItem* theWrappedObject) { return theWrappedObject->treeWidget()!=NULL || theWrappedObject->parent()!=NULL; }" << endl;
261
264
} else if (meta_class->name ()==" QGraphicsItem" ) {
262
- s << " bool hasOwner (QGraphicsItem* theWrappedObject) { return theWrappedObject->scene()!=NULL || theWrappedObject->parentItem()!=NULL; }" << endl;
265
+ s << " bool py_hasOwner (QGraphicsItem* theWrappedObject) { return theWrappedObject->scene()!=NULL || theWrappedObject->parentItem()!=NULL; }" << endl;
263
266
}
264
267
265
268
AbstractMetaFunctionList functions = getFunctionsToWrap (meta_class);
@@ -272,8 +275,8 @@ void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c
272
275
s << " ;" << endl;
273
276
}
274
277
}
275
- if (! meta_class->hasDefaultToStringFunction () && meta_class->hasToStringCapability ()) {
276
- s << " QString toString (" << meta_class->qualifiedCppName () << " *);" << endl;
278
+ if (meta_class->hasDefaultToStringFunction () || meta_class->hasToStringCapability ()) {
279
+ s << " QString py_toString (" << meta_class->qualifiedCppName () << " *);" << endl;
277
280
}
278
281
279
282
// Field accessors
0 commit comments