summaryrefslogtreecommitdiff
path: root/client/widgets/multilist.cc
diff options
context:
space:
mode:
authordeva <deva>2008-12-03 11:20:22 +0000
committerdeva <deva>2008-12-03 11:20:22 +0000
commitf8876e46818361e6adce312a24b0ca230fbbefe1 (patch)
treedd65e6a09f430808af4d95b18b5a051bb383c779 /client/widgets/multilist.cc
parentbb20a6c621ae74cc2c7099d74d85829fe41a4eda (diff)
Added some graphics to the multilist widget to make it easier to understand.
Diffstat (limited to 'client/widgets/multilist.cc')
-rw-r--r--client/widgets/multilist.cc17
1 files changed, 12 insertions, 5 deletions
diff --git a/client/widgets/multilist.cc b/client/widgets/multilist.cc
index d83423c..5ba40ac 100644
--- a/client/widgets/multilist.cc
+++ b/client/widgets/multilist.cc
@@ -88,21 +88,28 @@ MultiList::MultiList(QDomNode &node, MacroWindow *macrowindow)
printf("ERROR: Missing 'innerwidget' attribute on multilist!\n");
}
+ QLabel *arrows = new QLabel();
+ arrows->setPixmap(QPixmap("arrows.png"));
+ layout->addWidget(arrows, 1, 0, 1, 2, Qt::AlignHCenter);
+
QPushButton *add = new QPushButton(this);
connect(add, SIGNAL(clicked()), this, SLOT(add()));
- add->setText("Tilføj");
+ add->setText("Tilføj ovenstående til listen");
+ add->setIcon(QIcon(QPixmap("add.png")));
+
// layout->addWidget(add, 0, 1, Qt::AlignTop);
- layout->addWidget(add, 1, 0, 1, 1, Qt::AlignTop);
+ layout->addWidget(add, 2, 0, 1, 1, Qt::AlignTop);
QPushButton *rem = new QPushButton(this);
connect(rem, SIGNAL(clicked()), this, SLOT(remove()));
- rem->setText("Fjern");
+ rem->setText("Fjern det markerede element fra listen");
+ rem->setIcon(QIcon(QPixmap("del.png")));
// layout->addWidget(rem, 1, 1, Qt::AlignTop);
- layout->addWidget(rem, 1, 1, 1, 1, Qt::AlignTop);
+ layout->addWidget(rem, 2, 1, 1, 1, Qt::AlignTop);
list = new QListWidget(this);
// layout->addWidget(list, 1, 0, Qt::AlignTop);
- layout->addWidget(list, 2, 0, 1, 2, Qt::AlignTop);
+ layout->addWidget(list, 3, 0, 1, 2, Qt::AlignTop);
/* // This is done later
if(elem.hasAttribute("value")) {