@@ -265,11 +265,6 void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c | |||||
265 | s << "void delete_" << meta_class->name() << "(" << meta_class->qualifiedCppName() << "* obj) { delete obj; } "; |
|
265 | s << "void delete_" << meta_class->name() << "(" << meta_class->qualifiedCppName() << "* obj) { delete obj; } "; | |
266 | s << endl; |
|
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 | AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class); |
|
269 | AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class); | |
275 |
|
270 |
General Comments 0
You need to be logged in to leave comments.
Login now