From 014a55a83a3c9d289d32632a6da9ffe5473c780d 2012-04-30 14:17:30 From: florianlink Date: 2012-04-30 14:17:30 Subject: [PATCH] removed non-working py_hasOwner support git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@218 ea8d5007-eb21-0410-b261-ccb3ea6e24a9 --- diff --git a/generator/shellheadergenerator.cpp b/generator/shellheadergenerator.cpp index c3d10d0..eb10ffc 100644 --- a/generator/shellheadergenerator.cpp +++ b/generator/shellheadergenerator.cpp @@ -265,11 +265,6 @@ void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c s << "void delete_" << meta_class->name() << "(" << meta_class->qualifiedCppName() << "* obj) { delete obj; } "; s << endl; } - if (meta_class->name()=="QTreeWidgetItem") { - s << "bool py_hasOwner(QTreeWidgetItem* theWrappedObject) { return theWrappedObject->treeWidget()!=NULL || theWrappedObject->parent()!=NULL; }" << endl; - } else if (meta_class->name()=="QGraphicsItem") { - s << "bool py_hasOwner(QGraphicsItem* theWrappedObject) { return theWrappedObject->scene()!=NULL || theWrappedObject->parentItem()!=NULL; }" << endl; - } AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class);