diff options
author | deva <deva> | 2008-06-17 14:57:56 +0000 |
---|---|---|
committer | deva <deva> | 2008-06-17 14:57:56 +0000 |
commit | b681594b7e4f9a5375b555b152d661581c600a96 (patch) | |
tree | 24235bfee0ecb43bd6e43d8bf6f6835a8a699ba9 /client/macrowindow.cc | |
parent | 9bdb1cadd2639455a6eab5135fc6ce6955d0def0 (diff) |
Multilist is now showing as it should. No functionality yet though.
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r-- | client/macrowindow.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc index 69df7f1..b799d31 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -135,6 +135,29 @@ void MacroWindow::recurser(QDomNode xml_node, QWidget *parent) widgets.push_back(listbox); widget = listbox; //return; // Don't iterate children + } else if(xml_elem.tagName() == "multilist") { + + MultiList *multilist = new MultiList(xml_elem, this); + widgets.push_back(multilist); + if(parent) parent->layout()->addWidget(multilist); + + QDomNodeList children = xml_node.childNodes(); + for (int i=0; i<children.count();i++) { + QDomNode child = children.at(i); + if(child.nodeName() == "input") { + QDomNodeList children = child.childNodes(); + + for (int i=0; i<children.count();i++) { + QDomNode child = children.at(i); + recurser(child, multilist->inputcontainer); + } + break; + } + } + + multilist->inputcontainer->show(); + multilist->show(); + return; // Don't iterate children } QDomNodeList children = xml_node.childNodes(); |