diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kxsldbg/kxsldbgpart/libxsldbg/search.cpp | |
parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kxsldbg/kxsldbgpart/libxsldbg/search.cpp')
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/search.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/search.cpp b/kxsldbg/kxsldbgpart/libxsldbg/search.cpp index 68fcd7e1..90cc9a10 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/search.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/search.cpp @@ -404,7 +404,7 @@ searchSave(const xmlChar * fileName) if (xmlSaveFormatFile((char *) searchInput, searchDataBase, 1) != -1){ result = 1; }else{ - xsldbgGenericErrorFunc(i18n("Error: Unable to write search Database to file %1. Try setting the \"searchresultspath\" option to a writable path.\n").arg(xsldbgText(searchInput))); + xsldbgGenericErrorFunc(i18n("Error: Unable to write search Database to file %1. Try setting the \"searchresultspath\" option to a writable path.\n").tqarg(xsldbgText(searchInput))); } if (searchInput) @@ -479,9 +479,9 @@ searchQuery(const xmlChar * tempFile, const xmlChar * outputFile, result = filesMoreFile(searchOutput, NULL); } - xsldbgGenericErrorFunc(i18n("Information: Transformed %1 using %2 and saved to %3.\n").arg(xsldbgText(searchInput)).arg(xsldbgText(searchXSL)).arg(xsldbgText(searchOutput))); + xsldbgGenericErrorFunc(i18n("Information: Transformed %1 using %2 and saved to %3.\n").tqarg(xsldbgText(searchInput)).tqarg(xsldbgText(searchXSL)).tqarg(xsldbgText(searchOutput))); } else { - xsldbgGenericErrorFunc(i18n("Error: Invalid arguments to command %1.\n").arg("search")); + xsldbgGenericErrorFunc(i18n("Error: Invalid arguments to command %1.\n").tqarg("search")); } if (searchInput) @@ -720,7 +720,7 @@ findTemplateNode(xsltStylesheetPtr style, const xmlChar * name) } if (!result) - xsldbgGenericErrorFunc(i18n("Error: XSLT template named \"%1\" was not found.\n").arg(xsldbgText(name))); + xsldbgGenericErrorFunc(i18n("Error: XSLT template named \"%1\" was not found.\n").tqarg(xsldbgText(name))); return result; } @@ -1334,16 +1334,16 @@ searchLocalNode(xmlNodePtr variable) xmlNodePtr node = NULL; int result = 1; xmlChar *value; - xmlNodePtr parent; + xmlNodePtr tqparent; if (variable) { node = searchGlobalNode(variable); if (node) { /* if unable to create any property failed then result will be equal to 0 */ - parent = variable->parent; + tqparent = variable->parent; /* try to find out what template this variable belongs to */ - if (parent && IS_XSLT_NAME(parent, "template")) { - value = xmlGetProp(parent, (xmlChar *) "name"); + if (tqparent && IS_XSLT_NAME(tqparent, "template")) { + value = xmlGetProp(tqparent, (xmlChar *) "name"); if (value) { result = result && @@ -1351,7 +1351,7 @@ searchLocalNode(xmlNodePtr variable) != NULL); xmlFree(value); } - value = xmlGetProp(parent, (xmlChar *) "match"); + value = xmlGetProp(tqparent, (xmlChar *) "match"); if (value) { result = result && @@ -1398,7 +1398,7 @@ searchSourceNode(xsltStylesheetPtr style) != NULL); if (style->parent && style->parent->doc) { result = result && - (xmlNewProp(node, (xmlChar *) "parent", + (xmlNewProp(node, (xmlChar *) "tqparent", style->parent->doc->URL) != NULL); } if (result) { |