summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
authorNils Schwabe2014-03-21 15:37:45 +0100
committerNils Schwabe2014-03-21 15:37:45 +0100
commitdb6e2bb254328386603701c6b8edba9fa6623d7f (patch)
tree9b529e9fb0a89736dc53d027814f268b37ee26fd /src/dialog.cpp
parent- added tab view (diff)
downloadvmchooser2-db6e2bb254328386603701c6b8edba9fa6623d7f.tar.gz
vmchooser2-db6e2bb254328386603701c6b8edba9fa6623d7f.tar.xz
vmchooser2-db6e2bb254328386603701c6b8edba9fa6623d7f.zip
- display the keywords in the desciption box
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index 798d6be..fc9a435 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -216,7 +216,7 @@ void Dialog::startSession(const QString& name) {
void Dialog::showSettingsPVS() {
pvsSettings_ = new QSettings("openslx", "pvs", this);
QStringList accessOptions;
- accessOptions <<trUtf8("None") << trUtf8("View Only") << trUtf8("Full");
+ accessOptions << trUtf8("None") << trUtf8("View Only") << trUtf8("Full");
ui->comboBoxLecturer->insertItems(0, accessOptions);
ui->comboBoxOthers->insertItems(0, accessOptions);
readPVSSettings();
@@ -362,7 +362,13 @@ void Dialog::treeView_selectionChanged(const QModelIndex& current, const QModelI
ui->label_os->setText(vs->getAttribute("os", "param"));
ui->label_os->setToolTip(vs->getAttribute("os", "param"));
- ui->textBrowser->setText(vs->getAttribute("long_description", "param"));
+ //ui->textBrowser->setText(vs->getAttribute("long_description", "param"));
+ QString description(vs->getAttribute("long_description", "param") + "\n\nKeywords: ");
+ for (int i = 0; i < vs->keywords().length(); ++i) {
+ description += vs->keywords()[i] + ", ";
+ }
+
+ ui->textBrowser->setText(description);
} else {
ui->label_name->setText(s->shortDescription());