diff options
Diffstat (limited to 'client/widgets/listbox.cc')
-rw-r--r-- | client/widgets/listbox.cc | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/client/widgets/listbox.cc b/client/widgets/listbox.cc index 5215c18..88a5cd2 100644 --- a/client/widgets/listbox.cc +++ b/client/widgets/listbox.cc @@ -27,6 +27,7 @@ #include "listbox.h" #include <QListWidgetItem> +#include "common.h" static QListWidgetItem *createItem(QDomElement &elem) { @@ -70,19 +71,7 @@ static QListWidgetItem *createItem(QDomElement &elem) ListBox::ListBox(QDomNode &node, MacroWindow *macrowindow) : QListWidget(), Widget(node, macrowindow) { - QDomElement elem = node.toElement(); - - if(elem.hasAttribute("width")) { - setMinimumWidth(elem.attribute("width").toInt()); - } - - if(elem.hasAttribute("height")) { - setMinimumHeight(elem.attribute("height").toInt()); - } - - if(elem.hasAttribute("help")) { - setToolTip(elem.attribute("help")); - } + setCommonAttributes(this, node); QDomNodeList children = node.childNodes(); @@ -91,12 +80,6 @@ ListBox::ListBox(QDomNode &node, MacroWindow *macrowindow) QDomElement list_elem = child.toElement(); addItem(createItem(list_elem)); } - - /* // This is done later - if(elem.hasAttribute("value")) { - setValue(elem.attribute("value")); - } - */ } bool ListBox::isValid() |