From: James Turner Date: Fri, 15 Apr 2016 16:25:00 +0000 (+0100) Subject: Minor improvement to hangar list in the launcher. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a63da0cbde34467f4bb83f625f064da6643cfe11;p=flightgear.git Minor improvement to hangar list in the launcher. --- 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 + +