Mercurial > projects > qtd
diff tools/duic/d/dwriteincludes.cpp @ 56:d5a6b6269f44
duic is working now on the first testcase, if there are any issues with it please report
author | eldar |
---|---|
date | Mon, 18 May 2009 22:15:59 +0000 |
parents | 2085c2157b50 |
children |
line wrap: on
line diff
--- a/tools/duic/d/dwriteincludes.cpp Mon May 18 19:03:06 2009 +0000 +++ b/tools/duic/d/dwriteincludes.cpp Mon May 18 22:15:59 2009 +0000 @@ -99,6 +99,7 @@ add(QLatin1String("QApplication")); add(QLatin1String("QVariant")); add(QLatin1String("QAction")); + add(QLatin1String("QString")); add(QLatin1String("QButtonGroup")); // ### only if it is really necessary @@ -120,7 +121,7 @@ TreeWalker::acceptUI(node); QString qualifiedClassName = node->elementClass(); - m_output << "module ui." << qualifiedClassName << ";\n\n"; + m_output << "module ui_" << qualifiedClassName.toLower() << ";\n\n"; writeHeaders(m_globalIncludes, true); writeHeaders(m_localIncludes, false); @@ -291,7 +292,7 @@ const bool mapped = hit != m_oldHeaderToNewHeader.constEnd(); const QString header = mapped ? hit.value() : sit.key(); if (!header.trimmed().isEmpty()) { - m_output << "import " << header << QLatin1Char(';') << QLatin1Char('\n'); + m_output << "public import " << header << QLatin1Char(';') << QLatin1Char('\n'); } } }