Mercurial > projects > qtd
diff tools/duic/d/dwriteinitialization.cpp @ 76:454e4b4beb59
duic: fix #4
author | SokoL_SD |
---|---|
date | Sun, 24 May 2009 11:24:57 +0000 |
parents | d5a6b6269f44 |
children | 3d465c0a4f98 |
line wrap: on
line diff
--- 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);