summaryrefslogtreecommitdiff
path: root/client/widgets/multilist.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/multilist.cc')
-rw-r--r--client/widgets/multilist.cc17
1 files changed, 11 insertions, 6 deletions
diff --git a/client/widgets/multilist.cc b/client/widgets/multilist.cc
index 80addf7..b2ba2a2 100644
--- a/client/widgets/multilist.cc
+++ b/client/widgets/multilist.cc
@@ -42,7 +42,7 @@ MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow)
QWidget *inputbox = new QWidget(this);
inputbox->setContentsMargins(0,0,0,0);
- layout->addWidget(inputbox, 0, 0, Qt::AlignTop);
+ layout->addWidget(inputbox, 0, 0, 1, 2, Qt::AlignTop);
QDomElement elem = node.toElement();
if(elem.hasAttribute("layout")) {
@@ -69,16 +69,19 @@ MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow)
QPushButton *add = new QPushButton(this);
connect(add, SIGNAL(clicked()), this, SLOT(add()));
- add->setText("+");
- layout->addWidget(add, 0, 1, Qt::AlignTop);
+ add->setText("Tilføj");
+ // layout->addWidget(add, 0, 1, Qt::AlignTop);
+ layout->addWidget(add, 1, 0, 1, 1, Qt::AlignTop);
list = new QListWidget(this);
- layout->addWidget(list, 1, 0, Qt::AlignTop);
+ // layout->addWidget(list, 1, 0, Qt::AlignTop);
+ layout->addWidget(list, 2, 0, 1, 2, Qt::AlignTop);
QPushButton *rem = new QPushButton(this);
connect(rem, SIGNAL(clicked()), this, SLOT(remove()));
- rem->setText("-");
- layout->addWidget(rem, 1, 1, Qt::AlignTop);
+ rem->setText("Fjern");
+ // layout->addWidget(rem, 1, 1, Qt::AlignTop);
+ layout->addWidget(rem, 1, 1, 1, 1, Qt::AlignTop);
/* // This is done later
if(elem.hasAttribute("value")) {
@@ -105,6 +108,8 @@ MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow)
if(elem.hasAttribute("height")) {
setMinimumHeight(elem.attribute("height").toInt());
}
+
+ layout->setContentsMargins(0,0,0,0);
}
void MultiList::changed()