Mercurial > projects > qtd
diff generator/dgenerator.cpp @ 279:519befd5a5d1
Fix for windows build, thanks Rainer.
Fix for signals.
author | eldar |
---|---|
date | Fri, 09 Oct 2009 06:17:51 +0000 |
parents | 49bfc86ff583 |
children | 1f6923c8cba0 |
line wrap: on
line diff
--- a/generator/dgenerator.cpp Sun Oct 04 12:14:03 2009 +0000 +++ b/generator/dgenerator.cpp Fri Oct 09 06:17:51 2009 +0000 @@ -2565,7 +2565,7 @@ // write static constructor if (staticInit) { QString initArgs; - if (cpp_shared) + if (cpp_shared && d_class->generateShellClass()) { initArgs = "void* virtuals"; if (d_class->isQObject()) @@ -2582,7 +2582,7 @@ << INDENT << " " << d_class->name() << ".createStaticMetaObject;" << endl << endl; } - if (cpp_shared) { + if (cpp_shared && d_class->generateShellClass()) { // virtual functions s << INDENT << "void*[" << virtualFunctions.size() << "] virt_arr;" << endl; for (int pos = 0; pos<virtualFunctions.size(); ++pos) {