diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-07-18 19:47:03 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-07-18 19:47:03 (GMT) |
commit | 46361b7017fbbbc5f560eea54aac2be86abaf90e (patch) | |
tree | 6409d19be4f75548825a856ab0a7bd9921ad4996 /src/htmlattrib.h | |
parent | e6e861e83b8a05b894b84775f0fc115614d6f229 (diff) | |
download | Doxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.zip Doxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.tar.gz Doxygen-46361b7017fbbbc5f560eea54aac2be86abaf90e.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); } |