# HG changeset patch # User SokoL_SD # Date 1243164297 0 # Node ID 454e4b4beb593538ccfd8b80897957daa56e8f29 # Parent 44a75b4671978bf4549556d091e019df8bc050d1 duic: fix #4 diff -r 44a75b467197 -r 454e4b4beb59 tools/duic/d/dwriteinitialization.cpp --- a/tools/duic/d/dwriteinitialization.cpp Sun May 24 11:09:31 2009 +0000 +++ b/tools/duic/d/dwriteinitialization.cpp Sun May 24 11:24:57 2009 +0000 @@ -732,7 +732,7 @@ icon += iconCall(picon); } - m_output << m_option.indent << parentWidget << ".addTab(" << varName << icon << ", " << "QString());\n"; + m_output << m_option.indent << parentWidget << ".addTab(" << varName << icon << ", " << "\"\");\n"; m_refreshOut << m_option.indent << parentWidget << ".setTabText(" << parentWidget << ".indexOf(" << varName << "), " << trCall(title) << ");\n"; @@ -2008,7 +2008,7 @@ m_output << m_option.indent << varName << ".addItem("; if (icon) m_output << iconValue << ", "; - m_output << "QString());\n"; + m_output << "\"\");\n"; if (!toString(text->elementString()).isEmpty()) m_refreshOut << m_option.indent << varName << ".setItemText(" << i << ", " << trCall(text->elementString()) << ");\n"; @@ -2269,7 +2269,7 @@ QString WriteInitialization::trCall(const QString &str, const QString &commentHint) const { if (str.isEmpty()) - return QLatin1String("QString()"); + return QLatin1String("\"\""); QString result; const QString comment = commentHint.isEmpty() ? QString("null") : fixString(commentHint, m_option.indent);