From f3c9e1d2037e911ddabf9a95f2f0ffbe9b11617f Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 20 Jun 2008 14:40:05 +0000 Subject: Changed tab order --- client/widgets/multilist.cc | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'client') 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")); } -- cgit v1.2.3