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/qtag.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'quanta/parsers/qtag.cpp') diff --git a/quanta/parsers/qtag.cpp b/quanta/parsers/qtag.cpp index 77031eee..46b5b411 100644 --- a/quanta/parsers/qtag.cpp +++ b/quanta/parsers/qtag.cpp @@ -63,8 +63,8 @@ void QTag::addAttribute(Attribute* attr) a = new Attribute; a->name = attr->name; a->type = attr->type; - QStringList::ConstIterator end = attr->values.constEnd(); - for ( QStringList::ConstIterator it = attr->values.constBegin(); it != end; ++it ) + TQStringList::ConstIterator end = attr->values.constEnd(); + for ( TQStringList::ConstIterator it = attr->values.constBegin(); it != end; ++it ) { a->values.append(*it); } @@ -90,7 +90,7 @@ Attribute* QTag::attributeAt(int index) } /** Returns true if the attribute exists */ -bool QTag::isAttribute(const QString &attrName) +bool QTag::isAttribute(const TQString &attrName) { Attribute *a; int i; @@ -129,12 +129,12 @@ void QTag::setOptional(bool isOptional) optional = isOptional; } /** No descriptions */ -void QTag::setName(const QString& theName) +void QTag::setName(const TQString& theName) { tagName = theName; } /** No descriptions */ -QString QTag::name(bool doNotConvert) +TQString QTag::name(bool doNotConvert) { if (doNotConvert || !parentDTD || parentDTD->caseSensitive) return tagName; @@ -152,13 +152,13 @@ bool QTag::isOptional() return optional; } /** No descriptions */ -void QTag::setFileName(const QString& fileName) +void QTag::setFileName(const TQString& fileName) { m_fileName = fileName; } /** No descriptions */ -QString QTag::fileName() +TQString QTag::fileName() { return m_fileName; } @@ -186,7 +186,7 @@ QTag QTag::operator = (QTag &t) } /** Returns the attribute with name, or 0 if the tag does not have any attribute with name. */ -Attribute* QTag::attribute(const QString& name) +Attribute* QTag::attribute(const TQString& name) { Attribute *attr = 0L; for (uint i = 0; i < attrs.count(); i++) @@ -201,9 +201,9 @@ Attribute* QTag::attribute(const QString& name) return attr; } -bool QTag::isChild(const QString& tag, bool trueIfNoChildsDefined) +bool QTag::isChild(const TQString& tag, bool trueIfNoChildsDefined) { - QString tagName = tag; + TQString tagName = tag; tagName = parentDTD->caseSensitive ? tagName : tagName.upper(); if(trueIfNoChildsDefined) return (childTags.isEmpty() || childTags.contains(tagName)); @@ -213,7 +213,7 @@ bool QTag::isChild(const QString& tag, bool trueIfNoChildsDefined) bool QTag::isChild(Node *node, bool trueIfNoChildsDefined, bool treatEmptyNodesAsText) { - QString nodeName; + TQString nodeName; if(!node) return false; @@ -247,10 +247,10 @@ bool QTag::isChild(Node *node, bool trueIfNoChildsDefined, bool treatEmptyNodesA return isChild(node->tag->name, trueIfNoChildsDefined); } -QPtrList QTag::parents() +TQPtrList QTag::parents() { - QPtrList qTagList; - QDictIterator it((*parentDTD->tagsList)); + TQPtrList qTagList; + TQDictIterator it((*parentDTD->tagsList)); for(; it.current(); ++it) { if(it.current()->isChild(name())) -- cgit v1.2.1