Skip to content

Commit 6c7e86d

Browse files
committed
removed non-working py_hasOwner support
1 parent a44fb64 commit 6c7e86d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

generator/shellheadergenerator.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,6 @@ void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c
265265
s << "void delete_" << meta_class->name() << "(" << meta_class->qualifiedCppName() << "* obj) { delete obj; } ";
266266
s << endl;
267267
}
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-
}
273268

274269
AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class);
275270

0 commit comments

Comments
 (0)