summaryrefslogtreecommitdiffstats
path: root/quanta/parsers/sagroupparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/parsers/sagroupparser.cpp')
-rw-r--r--quanta/parsers/sagroupparser.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/quanta/parsers/sagroupparser.cpp b/quanta/parsers/sagroupparser.cpp
index 77698a45..6e409509 100644
--- a/quanta/parsers/sagroupparser.cpp
+++ b/quanta/parsers/sagroupparser.cpp
@@ -14,8 +14,8 @@
* *
***************************************************************************/
//qt includes
-#include <qtimer.h>
-#include <qvaluelist.h>
+#include <tqtimer.h>
+#include <tqvaluelist.h>
//kde includes
#include <kdebug.h>
@@ -45,8 +45,8 @@ SAGroupParser::SAGroupParser(SAParser *parent, Document *write, Node *startNode,
m_parent = parent;
m_write = write;
m_count = 0;
- m_parseForGroupTimer = new QTimer(this);
- connect(m_parseForGroupTimer, SIGNAL(timeout()), this, SLOT(slotParseForScriptGroup()));
+ m_parseForGroupTimer = new TQTimer(this);
+ connect(m_parseForGroupTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotParseForScriptGroup()));
}
void SAGroupParser::slotParseForScriptGroup()
@@ -106,23 +106,23 @@ void SAGroupParser::slotParseForScriptGroup()
void SAGroupParser::parseForScriptGroup(Node *node)
{
#ifdef DEBUG_PARSER
- QTime t;
+ TQTime t;
t.start();
#endif
int bl, bc, el, ec;
int pos;
- QString title;
- QString tmpStr;
+ TQString title;
+ TQString tmpStr;
StructTreeGroup group;
GroupElement *groupElement;
GroupElementList* groupElementList;
KURL baseURL = QExtFileInfo::path(m_write->url());
- QString str = node->tag->cleanStr;
- QString tagStr = node->tag->tagStr();
+ TQString str = node->tag->cleanStr;
+ TQString tagStr = node->tag->tagStr();
const DTDStruct* dtd = node->tag->dtd();
node->tag->beginPos(bl, bc);
- QValueList<StructTreeGroup>::ConstIterator it;
+ TQValueList<StructTreeGroup>::ConstIterator it;
for (it = dtd->structTreeGroups.begin(); it != dtd->structTreeGroups.end(); ++it)
{
group = *it;
@@ -158,7 +158,7 @@ void SAGroupParser::parseForScriptGroup(Node *node)
//have the same title. For example get the list of all group
//element which are variable and the matched string was "$i"
int cap1Pos = str.find(group.definitionRx.cap(1));
- QString s = tagStr.mid(cap1Pos, group.definitionRx.cap(1).length());
+ TQString s = tagStr.mid(cap1Pos, group.definitionRx.cap(1).length());
groupElementList = & (globalGroupMap[group.name + "|" + s]);
//Create a new tag which point to the exact location of the matched string.
//For example when the group defined PHP variables it
@@ -228,14 +228,14 @@ void SAGroupParser::parseForScriptGroup(Node *node)
if(qTag->className.length() != 0 && tagStr.contains('(') && tagStr.contains(')'))
{
// First we want to determine the whole line the tag is on
- QString tagWholeLineStr = tagStr;
+ TQString tagWholeLineStr = tagStr;
// Remove lines before target line
while(tagWholeLineStr.length() > 0) // this stops infinit looping in case something goes wrong!
{
int firstNewline = tagWholeLineStr.find('\n');
if(firstNewline == -1) //no new lines so we must be on the last
break;
- QString checkLineStr = tagWholeLineStr.mid(firstNewline+1,tagWholeLineStr.length());
+ TQString checkLineStr = tagWholeLineStr.mid(firstNewline+1,tagWholeLineStr.length());
if(checkLineStr.contains(s))
tagWholeLineStr = checkLineStr;
else
@@ -247,7 +247,7 @@ void SAGroupParser::parseForScriptGroup(Node *node)
int lastNewLine = tagWholeLineStr.findRev('\n');
if(lastNewLine == -1)
break;
- QString checkLineStr = tagWholeLineStr.mid(0,lastNewLine);
+ TQString checkLineStr = tagWholeLineStr.mid(0,lastNewLine);
if(checkLineStr.contains(s))
tagWholeLineStr = checkLineStr;
else