changeset 84:2edf95ad41e5

fix for #6
author eldar
date Sun, 24 May 2009 20:14:50 +0000
parents c64698c80409
children 5c8c9c5d9ee1
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 18:26:11 2009 +0000
+++ b/tools/duic/d/dwriteinitialization.cpp	Sun May 24 20:14:50 2009 +0000
@@ -170,9 +170,9 @@
         return  true;
     }
 
-    inline void openIfndef(QTextStream &str, const QString &symbol)  { str << endl << QLatin1String("#ifndef ") << symbol << endl;  }
-    inline void closeIfdef(QTextStream &str, const QString &symbol) { str << QLatin1String("#endif // ") << symbol << endl << endl; }
-
+    inline void openIfndef(QTextStream &str, const QString &symbol)  { str << endl << QLatin1String("version(") << symbol << QLatin1String(") {} else {") << endl;  }
+    inline void closeIfdef(QTextStream &str, const QString &symbol) { str << QLatin1String("} // ") << symbol << endl << endl; }
+    
     const char *accessibilityDefineC = "QT_NO_ACCESSIBILITY";
     const char *toolTipDefineC = "QT_NO_TOOLTIP";
     const char *whatsThisDefineC = "QT_NO_WHATSTHIS";