summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/widgets/multilist.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/client/widgets/multilist.cc b/client/widgets/multilist.cc
index babe509..a15d995 100644
--- a/client/widgets/multilist.cc
+++ b/client/widgets/multilist.cc
@@ -44,19 +44,6 @@ MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow)
inputbox->setContentsMargins(0,0,0,0);
layout->addWidget(inputbox, 0, 0, Qt::AlignTop);
- QPushButton *add = new QPushButton(this);
- connect(add, SIGNAL(clicked()), this, SLOT(add()));
- add->setText("+");
- layout->addWidget(add, 0, 1, Qt::AlignTop);
-
- list = new QListWidget(this);
- layout->addWidget(list, 1, 0, Qt::AlignTop);
-
- QPushButton *rem = new QPushButton(this);
- connect(rem, SIGNAL(clicked()), this, SLOT(remove()));
- rem->setText("-");
- layout->addWidget(rem, 1, 1, Qt::AlignTop);
-
QDomElement elem = node.toElement();
if(elem.hasAttribute("layout")) {
if(elem.attribute("layout") == "hbox") {
@@ -80,6 +67,19 @@ MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow)
widgets += widgetBuilder(child, inputbox, macrowindow);
}
+ QPushButton *add = new QPushButton(this);
+ connect(add, SIGNAL(clicked()), this, SLOT(add()));
+ add->setText("+");
+ layout->addWidget(add, 0, 1, Qt::AlignTop);
+
+ list = new QListWidget(this);
+ layout->addWidget(list, 1, 0, Qt::AlignTop);
+
+ QPushButton *rem = new QPushButton(this);
+ connect(rem, SIGNAL(clicked()), this, SLOT(remove()));
+ rem->setText("-");
+ layout->addWidget(rem, 1, 1, Qt::AlignTop);
+
if(elem.hasAttribute("value")) {
setValue(elem.attribute("value"));
}