Commit b63f4d456de4caf5e3d9e39ee9518dc46ddfd332

Authored by Scott Klum
1 parent bf220881

Rank output works with crossvalidation

Showing 1 changed file with 4 additions and 1 deletions
openbr/plugins/gui.cpp
@@ -212,8 +212,11 @@ public: @@ -212,8 +212,11 @@ public:
212 foreach (const Template & t, src) { 212 foreach (const Template & t, src) {
213 // build label 213 // build label
214 QString newTitle; 214 QString newTitle;
  215 +
215 foreach (const QString & s, keys) { 216 foreach (const QString & s, keys) {
216 - if (t.file.contains(s)) { 217 + if (s.compare("name", Qt::CaseInsensitive) == 0) {
  218 + newTitle = newTitle + s + ": " + file.name + " ";
  219 + } else if (t.file.contains(s)) {
217 QString out = t.file.get<QString>(s); 220 QString out = t.file.get<QString>(s);
218 newTitle = newTitle + s + ": " + out + " "; 221 newTitle = newTitle + s + ": " + out + " ";
219 } 222 }