summaryrefslogtreecommitdiff
path: root/client/widgets/multilist.cc
diff options
context:
space:
mode:
authordeva <deva>2008-08-28 14:13:48 +0000
committerdeva <deva>2008-08-28 14:13:48 +0000
commit477c9fd7f038cd43207c8634d53d0949814ecb4c (patch)
tree4d4f849c281aa4402c3f7bd95546c21ebe287e55 /client/widgets/multilist.cc
parentb74d14e7e8625ce1a148105f69e3406f7d88ecd6 (diff)
Added common stuff in central file. Fixed help text reformatting.
Diffstat (limited to 'client/widgets/multilist.cc')
-rw-r--r--client/widgets/multilist.cc11
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);