Merge pull request #7781 from Tilka/game_desc

DolphinQt: show game descriptions in one line
This commit is contained in:
Tilka 2019-02-04 02:53:05 +00:00 committed by GitHub
commit 972946277c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -123,7 +123,10 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
break; break;
case COL_DESCRIPTION: case COL_DESCRIPTION:
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole) if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
return QString::fromStdString(game.GetDescription()); {
return QString::fromStdString(game.GetDescription())
.replace(QLatin1Char('\n'), QLatin1Char(' '));
}
break; break;
case COL_MAKER: case COL_MAKER:
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole) if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)