From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/parsers/parsercommon.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'quanta/parsers/parsercommon.cpp') diff --git a/quanta/parsers/parsercommon.cpp b/quanta/parsers/parsercommon.cpp index 3283ed52..be660255 100644 --- a/quanta/parsers/parsercommon.cpp +++ b/quanta/parsers/parsercommon.cpp @@ -15,7 +15,7 @@ ***************************************************************************/ //qt includes -#include +#include //kde includes #include @@ -36,14 +36,14 @@ class KDirWatch; int nodeNum; //for memory debugging - remove if not needed namespace ParserCommon { - QStringList includedFiles; - QPtrList includedFilesDTD; + TQStringList includedFiles; + TQPtrList includedFilesDTD; KDirWatch *includeWatch; //common methods. -QString getLine(Document *write, int line, int endLine, int endCol) +TQString getLine(Document *write, int line, int endLine, int endCol) { - QString textLine = write->editIf->textLine(line); + TQString textLine = write->editIf->textLine(line); if (line == endLine) { if (endCol >0) @@ -56,12 +56,12 @@ QString getLine(Document *write, int line, int endLine, int endCol) void appendAreaToTextNode(Document *write, const AreaStruct &area, Node *node) { - QString tagStr = write->text(area); - QString cleanStr = node->tag->cleanStr; + TQString tagStr = write->text(area); + TQString cleanStr = node->tag->cleanStr; node->tag->setStr(node->tag->tagStr() + tagStr); if (node->tag->type == Tag::Empty) { - QString s = tagStr; + TQString s = tagStr; if (s.simplifyWhiteSpace().isEmpty()) { node->tag->type = Tag::Empty; @@ -70,7 +70,7 @@ void appendAreaToTextNode(Document *write, const AreaStruct &area, Node *node) node->tag->type = Tag::Text; } } - QString cleanedTagStr = tagStr; + TQString cleanedTagStr = tagStr; QuantaCommon::removeCommentsAndQuotes(cleanedTagStr, node->tag->dtd()); node->tag->cleanStr = cleanStr + cleanedTagStr; int bLine, bCol; @@ -100,7 +100,7 @@ Node* createTextNode(Document *write, Node *node, int eLine, int eCol, Node *par { AreaStruct area(bLine, bCol + 1, eLine, eCol); textTag = new Tag(area, write, dtd); - QString s = textTag->tagStr(); + TQString s = textTag->tagStr(); textTag->single = true; if (s.simplifyWhiteSpace().isEmpty()) { @@ -162,7 +162,7 @@ Node* createTextNode(Document *write, Node *node, int eLine, int eCol, Node *par return node; } -Node* createScriptTagNode(Document *write, const AreaStruct &area, const QString &areaName, +Node* createScriptTagNode(Document *write, const AreaStruct &area, const TQString &areaName, const DTDStruct *dtd, Node *parentNode, Node *currentNode) { Tag *tag = new Tag(); @@ -205,7 +205,7 @@ Node* createScriptTagNode(Document *write, const AreaStruct &area, const QString void coutTree(Node *node, int indent) { - QString output; + TQString output; int bLine, bCol, eLine, eCol; if (!node) kdDebug(24000)<< "undoRedo::coutTree() - bad node!" << endl; @@ -238,7 +238,7 @@ void coutTree(Node *node, int indent) void verifyTree(Node *node) { - QString output; + TQString output; int bLine, bCol, eLine, eCol; while (node) { -- cgit v1.2.1