Skip to content

Commit df6ba65

Browse files
author
florianlink
committed
removed non-working py_hasOwner support
git-svn-id: https://pythonqt.svn.sourceforge.net/svnroot/pythonqt/trunk@218 ea8d5007-eb21-0410-b261-ccb3ea6e24a9
1 parent 2d9ca49 commit df6ba65

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)