diff options
author | deva <deva> | 2008-06-20 14:40:05 +0000 |
---|---|---|
committer | deva <deva> | 2008-06-20 14:40:05 +0000 |
commit | f3c9e1d2037e911ddabf9a95f2f0ffbe9b11617f (patch) | |
tree | 478d44cbb0c7a0d39dd6c7f3415961291959bfe7 /client/widgets | |
parent | dffc544632e381dbff7c3e1e6cfa4ee175f50f80 (diff) |
Changed tab order
Diffstat (limited to 'client/widgets')
-rw-r--r-- | client/widgets/multilist.cc | 26 |
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")); } |