summaryrefslogtreecommitdiffstats
path: root/src/htmlattrib.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-07-18 19:47:03 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-07-18 19:47:03 (GMT)
commit46361b7017fbbbc5f560eea54aac2be86abaf90e (patch)
tree6409d19be4f75548825a856ab0a7bd9921ad4996 /src/htmlattrib.h
parente6e861e83b8a05b894b84775f0fc115614d6f229 (diff)
downloadDoxygen-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.h12
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); }