@@ -127,6 +127,8 void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c | |||||
127 | s << "),_wrapper(NULL) {};" << endl; |
|
127 | s << "),_wrapper(NULL) {};" << endl; | |
128 | } |
|
128 | } | |
129 | s << endl; |
|
129 | s << endl; | |
|
130 | s << " ~" << shellClassName(meta_class) << "();" << endl; | |||
|
131 | s << endl; | |||
130 |
|
132 | |||
131 | foreach(AbstractMetaFunction* fun, virtualsForShell) { |
|
133 | foreach(AbstractMetaFunction* fun, virtualsForShell) { | |
132 | s << "virtual "; |
|
134 | s << "virtual "; |
@@ -104,6 +104,12 void ShellImplGenerator::write(QTextStream &s, const AbstractMetaClass *meta_cla | |||||
104 | } |
|
104 | } | |
105 |
|
105 | |||
106 | if (meta_class->generateShellClass()) { |
|
106 | if (meta_class->generateShellClass()) { | |
|
107 | ||||
|
108 | s << shellClassName(meta_class) << "::~" << shellClassName(meta_class) << "() {" << endl; | |||
|
109 | s << " PythonQtPrivate* priv = PythonQt::priv();" << endl; | |||
|
110 | s << " if (priv) { priv->shellClassDeleted(this); }" << endl; | |||
|
111 | s << "}" << endl; | |||
|
112 | ||||
107 | AbstractMetaFunctionList virtualsForShell = getVirtualFunctionsForShell(meta_class); |
|
113 | AbstractMetaFunctionList virtualsForShell = getVirtualFunctionsForShell(meta_class); | |
108 | foreach (const AbstractMetaFunction *fun, virtualsForShell) { |
|
114 | foreach (const AbstractMetaFunction *fun, virtualsForShell) { | |
109 | bool hasReturnValue = (fun->type()); |
|
115 | bool hasReturnValue = (fun->type()); |
General Comments 0
You need to be logged in to leave comments.
Login now