Merge pull request #7781 from Tilka/game_desc
DolphinQt: show game descriptions in one line
This commit is contained in:
commit
972946277c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue