diff options
Diffstat (limited to 'quanta/parsers/parsercommon.cpp')
-rw-r--r-- | quanta/parsers/parsercommon.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
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 <qstring.h> +#include <tqstring.h> //kde includes #include <kdebug.h> @@ -36,14 +36,14 @@ class KDirWatch; int nodeNum; //for memory debugging - remove if not needed namespace ParserCommon { - QStringList includedFiles; - QPtrList<const DTDStruct> includedFilesDTD; + TQStringList includedFiles; + TQPtrList<const DTDStruct> 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) { |