diff options
Diffstat (limited to 'pyuic3/uic.cpp')
-rw-r--r-- | pyuic3/uic.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyuic3/uic.cpp b/pyuic3/uic.cpp index 6189639..16c027e 100644 --- a/pyuic3/uic.cpp +++ b/pyuic3/uic.cpp @@ -80,7 +80,7 @@ bool Uic::toBool( const TQString& s ) TQString Uic::fixString( const TQString &str, bool encode ) { -#if QT_VERSION >= 0x030100 +#if TQT_VERSION >= 0x030100 TQString s; if ( !encode ) { s = str; @@ -182,7 +182,7 @@ Uic::Uic( const TQString &fn, const char *outputFn, TQTextStream &outStream, pixmapLoaderFunction = getPixmapLoaderFunction( doc.firstChild().toElement() ); nameOfClass = getFormClassName( doc.firstChild().toElement() ); -#if QT_VERSION >= 0x030300 +#if TQT_VERSION >= 0x030300 uiFileVersion = doc.firstChild().toElement().attribute("version"); #endif stdsetdef = toBool( doc.firstChild().toElement().attribute("stdsetdef") ); @@ -402,7 +402,7 @@ void Uic::createActionImpl( const TQDomElement &n, const TQString &parent ) else continue; bool subActionsDone = FALSE; -#if QT_VERSION >= 0x030300 +#if TQT_VERSION >= 0x030300 bool hasMenuText = FALSE; TQString actionText; #endif @@ -424,7 +424,7 @@ void Uic::createActionImpl( const TQDomElement &n, const TQString &parent ) else call += "setProperty(\"" + prop + "\",TQVariant(" + value + "))"; -#if QT_VERSION >= 0x030300 +#if TQT_VERSION >= 0x030300 if (prop == "menuText") hasMenuText = TRUE; else if (prop == "text") @@ -441,7 +441,7 @@ void Uic::createActionImpl( const TQDomElement &n, const TQString &parent ) subActionsDone = TRUE; } } -#if QT_VERSION >= 0x030300 +#if TQT_VERSION >= 0x030300 // workaround for loading pre-3.3 files expecting bogus TQAction behavior if (!hasMenuText && !actionText.isEmpty() && uiFileVersion < "3.3") trout << indent << "self." << objName << ".setMenuText(" << actionText << ")" << endl; |