##// END OF EJS Templates
removed non-working py_hasOwner support...
florianlink -
r179:014a55a83a3c
parent child
Show More
@@ -265,11 +265,6 void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c
265 265 s << "void delete_" << meta_class->name() << "(" << meta_class->qualifiedCppName() << "* obj) { delete obj; } ";
266 266 s << endl;
267 267 }
268 if (meta_class->name()=="QTreeWidgetItem") {
269 s << "bool py_hasOwner(QTreeWidgetItem* theWrappedObject) { return theWrappedObject->treeWidget()!=NULL || theWrappedObject->parent()!=NULL; }" << endl;
270 } else if (meta_class->name()=="QGraphicsItem") {
271 s << "bool py_hasOwner(QGraphicsItem* theWrappedObject) { return theWrappedObject->scene()!=NULL || theWrappedObject->parentItem()!=NULL; }" << endl;
272 }
273 268
274 269 AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class);
275 270
General Comments 0
You need to be logged in to leave comments. Login now