@@ -57,6 +57,9 @@ void ShellHeaderGenerator::writeFieldAccessors(QTextStream &s, const AbstractMet
5757 const AbstractMetaFunction *setter = field->setter ();
5858 const AbstractMetaFunction *getter = field->getter ();
5959
60+ // Uuid data4 did not work
61+ if (field->enclosingClass ()->name ()==" QUuid" && setter->name ()==" data4" ) return ;
62+
6063 if (!field->type ()->isConstant ()) {
6164 writeFunctionSignature (s, setter, 0 , QString (),
6265 Option (ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | ShowStatic | UnderscoreSpaces));
@@ -257,9 +260,9 @@ void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c
257260 s << endl;
258261 }
259262 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;
261264 } 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;
263266 }
264267
265268 AbstractMetaFunctionList functions = getFunctionsToWrap (meta_class);
@@ -272,8 +275,8 @@ void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c
272275 s << " ;" << endl;
273276 }
274277 }
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;
277280 }
278281
279282 // Field accessors
0 commit comments