summaryrefslogtreecommitdiffstats
path: root/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp')
-rw-r--r--kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp44
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);
}