diff options
author | deva <deva> | 2008-08-28 14:13:48 +0000 |
---|---|---|
committer | deva <deva> | 2008-08-28 14:13:48 +0000 |
commit | 477c9fd7f038cd43207c8634d53d0949814ecb4c (patch) | |
tree | 4d4f849c281aa4402c3f7bd95546c21ebe287e55 /client/widgets/listbox.cc | |
parent | b74d14e7e8625ce1a148105f69e3406f7d88ecd6 (diff) |
Added common stuff in central file. Fixed help text reformatting.
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() |