diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-07-18 19:47:03 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-07-18 19:47:03 (GMT) |
commit | ea4704b4fde1c7b12520e45f5a67fdbc66d04e36 (patch) | |
tree | 6409d19be4f75548825a856ab0a7bd9921ad4996 /src/htmlattrib.h | |
parent | dfb480bec3fddc5f73fa74e659b8f21fba2fd52c (diff) | |
download | Doxygen-ea4704b4fde1c7b12520e45f5a67fdbc66d04e36.zip Doxygen-ea4704b4fde1c7b12520e45f5a67fdbc66d04e36.tar.gz Doxygen-ea4704b4fde1c7b12520e45f5a67fdbc66d04e36.tar.bz2 |
Release-1.3.7-20040718
Diffstat (limited to 'src/htmlattrib.h')
-rw-r--r-- | src/htmlattrib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/htmlattrib.h b/src/htmlattrib.h index 371f3d5..a62c8e5 100644 --- a/src/htmlattrib.h +++ b/src/htmlattrib.h @@ -35,6 +35,18 @@ class HtmlAttribList : public QList<HtmlAttrib> { operator=(l); } HtmlAttribList &operator=(const HtmlAttribList &l) { clear(); QList<HtmlAttrib>::operator=(l); return *this; } + QString toString() const + { + HtmlAttribList *that = (HtmlAttribList *)this; + QString result; + HtmlAttrib *attr=that->first(); + while (attr) + { + result+=" "+attr->name+"=\""+attr->value+"\""; + attr=that->next(); + } + return result; + } private: QCollection::Item newItem( QCollection::Item d ) { return (QCollection::Item)new HtmlAttrib(*(HtmlAttrib *)d); } |