diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/parsers/qtag.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-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/qtag.cpp')
-rw-r--r-- | quanta/parsers/qtag.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
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> QTag::parents() +TQPtrList<QTag> QTag::parents() { - QPtrList<QTag> qTagList; - QDictIterator<QTag> it((*parentDTD->tagsList)); + TQPtrList<QTag> qTagList; + TQDictIterator<QTag> it((*parentDTD->tagsList)); for(; it.current(); ++it) { if(it.current()->isChild(name())) |