diff options
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(); |