summaryrefslogtreecommitdiff
path: root/client/docgen/genimage.cc
diff options
context:
space:
mode:
authordeva <deva>2011-03-25 14:54:32 +0000
committerdeva <deva>2011-03-25 14:54:32 +0000
commit93de7f375842c0afb72db8796c45bfda5f1a6f13 (patch)
treef00bb8bab149e11b5fbb7208382b142d9fafc53e /client/docgen/genimage.cc
parenta3016fbf0d50bfe82e69a657328ef76370227979 (diff)
Finished documenting the last widgets. Also some changes in the docgen app.
Diffstat (limited to 'client/docgen/genimage.cc')
-rw-r--r--client/docgen/genimage.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/client/docgen/genimage.cc b/client/docgen/genimage.cc
index 332887c..f598553 100644
--- a/client/docgen/genimage.cc
+++ b/client/docgen/genimage.cc
@@ -64,6 +64,15 @@ void genImage(QString widget)
}
if(widget == "combobox" || widget == "listbox") {
+
+ if(widget == "listbox") {
+ QDomElement e = node.createElement("item");
+ e.setAttribute("type", "header");
+ e.setAttribute("caption", "Header 1");
+ e.setAttribute("value", "Header 1");
+ elem.appendChild(e);
+ }
+
{
QDomElement e = node.createElement("item");
e.setAttribute("caption", "List item 1");
@@ -77,6 +86,14 @@ void genImage(QString widget)
elem.appendChild(e);
}
+ if(widget == "listbox") {
+ QDomElement e = node.createElement("item");
+ e.setAttribute("type", "separator");
+ e.setAttribute("caption", "sep 1");
+ e.setAttribute("value", "sep 1");
+ elem.appendChild(e);
+ }
+
{
QDomElement e = node.createElement("item");
e.setAttribute("caption", "List item 3");