##// END OF EJS Templates
added destructor creation for shells...
florianlink -
r178:12aa9315d296
parent child
Show More
@@ -127,6 +127,8 void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_c
127 127 s << "),_wrapper(NULL) {};" << endl;
128 128 }
129 129 s << endl;
130 s << " ~" << shellClassName(meta_class) << "();" << endl;
131 s << endl;
130 132
131 133 foreach(AbstractMetaFunction* fun, virtualsForShell) {
132 134 s << "virtual ";
@@ -104,6 +104,12 void ShellImplGenerator::write(QTextStream &s, const AbstractMetaClass *meta_cla
104 104 }
105 105
106 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 113 AbstractMetaFunctionList virtualsForShell = getVirtualFunctionsForShell(meta_class);
108 114 foreach (const AbstractMetaFunction *fun, virtualsForShell) {
109 115 bool hasReturnValue = (fun->type());
General Comments 0
You need to be logged in to leave comments. Login now