diff options
Diffstat (limited to 'client/widgets/multilist.cc')
-rw-r--r-- | client/widgets/multilist.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/client/widgets/multilist.cc b/client/widgets/multilist.cc index cbda305..a33c054 100644 --- a/client/widgets/multilist.cc +++ b/client/widgets/multilist.cc @@ -34,9 +34,13 @@ #include "widgetbuilder.h" #include "formatparser.h" +#include "common.h" + MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow) : QFrame(), Widget(node, macrowindow) { + setCommonAttributes(this, node); + QGridLayout *layout = new QGridLayout(); setLayout(layout); @@ -58,10 +62,6 @@ MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow) inputbox->setLayout(layout); } - if(elem.hasAttribute("help")) { - setToolTip(elem.attribute("help")); - } - inputbox->layout()->setContentsMargins(0,0,0,0); QDomNodeList children = node.childNodes(); @@ -155,6 +155,9 @@ QString MultiList::getValue() void MultiList::setValue(QString values) { QString value; + + list->clear(); + int idx = 0; do { value = values.section('\n', idx, idx); |