changeset 76:454e4b4beb59

duic: fix #4
author SokoL_SD
date Sun, 24 May 2009 11:24:57 +0000
parents 44a75b467197
children 0654fc9bac95
files tools/duic/d/dwriteinitialization.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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);