]> git.mxchange.org Git - flightgear.git/commitdiff
Minor improvement to hangar list in the launcher.
authorJames Turner <zakalawe@mac.com>
Fri, 15 Apr 2016 16:25:00 +0000 (17:25 +0100)
committerJames Turner <zakalawe@mac.com>
Fri, 15 Apr 2016 16:27:29 +0000 (17:27 +0100)
src/GUI/CatalogListModel.cxx
src/GUI/PathsDialog.ui

index 9fd830293d64b946e4fa55421792906a58f6df3f..009ccadf5f93fa444c6ee1e76c6a09401d21a013 100644 (file)
@@ -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) {
index 723025976b99992b59e20aeb9b39f98e5213205e..070c1370a36504f589bed8363fb24b1d7dc7ee73 100644 (file)
        </widget>
       </item>
       <item row="0" column="0" colspan="4">
-       <widget class="QListView" name="catalogsList"/>
+       <widget class="QListView" name="catalogsList">
+        <property name="wordWrap">
+         <bool>true</bool>
+        </property>
+       </widget>
       </item>
      </layout>
     </widget>