summaryrefslogtreecommitdiffstats
path: root/quanta/parsers/parsercommon.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 /quanta/parsers/parsercommon.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 'quanta/parsers/parsercommon.cpp')
-rw-r--r--quanta/parsers/parsercommon.cpp26
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)
{