summaryrefslogtreecommitdiffstats
path: root/quanta/parsers/qtag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/parsers/qtag.cpp')
-rw-r--r--quanta/parsers/qtag.cpp28
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()))