summaryrefslogtreecommitdiffstats
path: root/src/htmlattrib.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-07-18 19:47:03 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-07-18 19:47:03 (GMT)
commitea4704b4fde1c7b12520e45f5a67fdbc66d04e36 (patch)
tree6409d19be4f75548825a856ab0a7bd9921ad4996 /src/htmlattrib.h
parentdfb480bec3fddc5f73fa74e659b8f21fba2fd52c (diff)
downloadDoxygen-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.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); }