# HG changeset patch # User eldar # Date 1243196090 0 # Node ID 2edf95ad41e5548bb8c46f6937bebb6398a33997 # Parent c64698c804090b4f84dd985bc432f467f61133e2 fix for #6 diff -r c64698c80409 -r 2edf95ad41e5 tools/duic/d/dwriteinitialization.cpp --- 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";