From a63da0cbde34467f4bb83f625f064da6643cfe11 Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 15 Apr 2016 17:25:00 +0100 Subject: [PATCH] Minor improvement to hangar list in the launcher. --- src/GUI/CatalogListModel.cxx | 4 +++- src/GUI/PathsDialog.ui | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/GUI/CatalogListModel.cxx b/src/GUI/CatalogListModel.cxx index 9fd830293..009ccadf5 100644 --- a/src/GUI/CatalogListModel.cxx +++ b/src/GUI/CatalogListModel.cxx @@ -59,7 +59,9 @@ QVariant CatalogListModel::data(const QModelIndex& index, int role) const simgear::pkg::CatalogRef cat = m_packageRoot->catalogs().at(index.row()); if (role == Qt::DisplayRole) { - return QString::fromStdString(cat->description()).trimmed(); + QString name = QString::fromStdString(cat->name()); + QString desc = QString::fromStdString(cat->description()).simplified(); + return QString("%1 - %2").arg(name).arg(desc); } else if (role == Qt::ToolTipRole) { return QString::fromStdString(cat->url()); } else if (role == CatalogUrlRole) { diff --git a/src/GUI/PathsDialog.ui b/src/GUI/PathsDialog.ui index 723025976..070c1370a 100644 --- a/src/GUI/PathsDialog.ui +++ b/src/GUI/PathsDialog.ui @@ -271,7 +271,11 @@ - + + + true + + -- 2.39.5