diff options
author | deva <deva> | 2008-08-20 07:41:52 +0000 |
---|---|---|
committer | deva <deva> | 2008-08-20 07:41:52 +0000 |
commit | 4be53ad09b924cfc1f5e72cea0ac92c184ce5d45 (patch) | |
tree | 16e84f1e46852330ff4735034a3549ebc1c4a632 /client/widgets/multilist.cc | |
parent | 5c102fdd1e6825a77bb9d7a69e268868d7f5398e (diff) |
A slighty slimmer layout.
Diffstat (limited to 'client/widgets/multilist.cc')
-rw-r--r-- | client/widgets/multilist.cc | 17 |
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() |