diff options
Diffstat (limited to 'kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp')
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp b/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp index 2afdb828..52066acf 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp @@ -101,7 +101,7 @@ #include <kcmdlineargs.h> #include <kglobal.h> -#include <qfile.h> +#include <tqfile.h> #ifdef WIN32 #ifdef _MSC_VER @@ -254,7 +254,7 @@ startTimer(void) * type argument */ static void -endTimer(const QString& message) +endTimer(const TQString& message) { long msec; @@ -284,7 +284,7 @@ startTimer(void) begin = clock(); } static void -endTimer(const QString& message) +endTimer(const TQString& message) { long msec; @@ -310,7 +310,7 @@ startTimer(void) */ } static void -endTimer(const QString& message) +endTimer(const TQString& message) { /* * We can not do anything because we don't have a timing function @@ -539,7 +539,7 @@ xsldbgMain(int argc, char **argv) if (args){ - QString langChoice = args->getOption("lang"); + TQString langChoice = args->getOption("lang"); if (KGlobal::locale() && !langChoice.isEmpty() && result) KGlobal::locale()->setLanguage(langChoice); } @@ -645,11 +645,11 @@ xsldbgMain(int argc, char **argv) if (args->isSet("verbose") && result) xsltSetGenericDebugFunc(stderr, NULL); - QCString outFile = args->getOption("output"); + TQCString outFile = args->getOption("output"); if (!outFile.isEmpty() && result) - result = xslDbgShellOutput((const xmlChar *)QFile::encodeName(outFile).data()); + result = xslDbgShellOutput((const xmlChar *)TQFile::encodeName(outFile).data()); - QCString maxDepth = args->getOption("maxdepth"); + TQCString maxDepth = args->getOption("maxdepth"); if (!maxDepth.isEmpty() && result){ bool OK; int value = maxDepth.toInt(&OK); @@ -666,7 +666,7 @@ xsldbgMain(int argc, char **argv) QCStringList xslParams(args->getOptionList("param")); QCStringList::iterator it; - QCString param, paramName, paramValue; + TQCString param, paramName, paramValue; int separatorIdx; bool paramOK; for ( it = xslParams.begin(); it != xslParams.end(); ++it){ @@ -692,9 +692,9 @@ xsldbgMain(int argc, char **argv) xsldbgGenericErrorFunc(i18n("Error: Argument \"%1\" to --param is not in the format <name>:<value>.\n").arg(param.data())); } - QCString cdPath = args->getOption("cd"); + TQCString cdPath = args->getOption("cd"); if (!cdPath.isEmpty() && result) - result = changeDir((const xmlChar *)QFile::encodeName(cdPath).data()); + result = changeDir((const xmlChar *)TQFile::encodeName(cdPath).data()); } @@ -997,7 +997,7 @@ xsldbgLoadXmlData(void) xslDebugStatus = DEBUG_STOP; } } else if (optionsGetIntOption(OPTIONS_TIMING)) - endTimer(QString("Parsing document %1").arg(xsldbgUrl(optionsGetStringOption(OPTIONS_DATA_FILE_NAME))).utf8().data()); + endTimer(TQString("Parsing document %1").arg(xsldbgUrl(optionsGetStringOption(OPTIONS_DATA_FILE_NAME))).utf8().data()); return doc; } @@ -1037,7 +1037,7 @@ xsldbgLoadXmlTemporary(const xmlChar * path) if (optionsGetIntOption(OPTIONS_TIMING) && (xslDebugStatus != DEBUG_QUIT)) { - endTimer(QString("Parsing document %1").arg(xsldbgUrl(path))); + endTimer(TQString("Parsing document %1").arg(xsldbgUrl(path))); } return doc; } @@ -1328,16 +1328,16 @@ xsldbgGenericErrorFunc(void *ctx, const char *msg, ...) va_end(args); } -void xsldbgGenericErrorFunc(QString const &text) +void xsldbgGenericErrorFunc(TQString const &text) { xsldbgGenericErrorFunc(0, "%s", text.utf8().data()); } -QString xsldbgUrl(const char *utf8fUrl) +TQString xsldbgUrl(const char *utf8fUrl) { - QString tempUrl(utf8fUrl); - QString fixedURI; + TQString tempUrl(utf8fUrl); + TQString fixedURI; KURL url(tempUrl); // May be provided with a URL that only has been encoded and has no protocol prefix ie a local file @@ -1349,19 +1349,19 @@ QString xsldbgUrl(const char *utf8fUrl) return fixedURI; } -QString xsldbgUrl(const xmlChar *utf8Url) +TQString xsldbgUrl(const xmlChar *utf8Url) { return xsldbgUrl((const char*)(utf8Url)); } -QString xsldbgText(const char *utf8Text) +TQString xsldbgText(const char *utf8Text) { - return QString::fromUtf8(utf8Text); + return TQString::fromUtf8(utf8Text); } -QString xsldbgText(const xmlChar *utf8Text) +TQString xsldbgText(const xmlChar *utf8Text) { - return QString::fromUtf8((const char *)utf8Text); + return TQString::fromUtf8((const char *)utf8Text); } |