fix minor woc generator bug
authorKonrad Rosenbaum <konrad@silmor.de>
Sat, 9 Mar 2013 13:45:19 +0000 (14:45 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Sat, 9 Mar 2013 13:45:19 +0000 (14:45 +0100)
woc/qt/qtout.cpp

index cbd0d30..c7f95cc 100644 (file)
@@ -66,7 +66,7 @@ WocQtOut::WocQtOut(QDomElement&el)
        m_iface.write(QByteArray("#include <QStringList>\n"));
         m_iface.write(exportLines());
        if(m_genscript)
-               m_iface.write(QByteArray("class ")+exportSymbol().toLatin1()+QByteArray(" QScriptEngine();\n"));
+               m_iface.write(QByteArray("class QScriptEngine;\n"));
        addIfaceHeaderClass(doxyFormat(pn+" interface class."));
        addIfaceHeaderClass(QString("class "+exportSymbol()+" "+ifaceClassName()+":public WInterface\n{\n Q_OBJECT\n"));
        addIfaceHeaderClass(QString(" public:\n  "+ifaceClassName()+"(QString name=\""+pn+"\"):WInterface(name){}\n"));