diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-29 20:30:49 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-29 20:30:49 +0200 |
commit | fae65d8a72e9d1a987797d910fb63b76d5590856 (patch) | |
tree | 5942b4ad372132ba6d10fa298b8df80ddd74fa7a /src | |
parent | game_list_p: Mark some constants as constexpr (diff) | |
download | yuzu-fae65d8a72e9d1a987797d910fb63b76d5590856.tar yuzu-fae65d8a72e9d1a987797d910fb63b76d5590856.tar.gz yuzu-fae65d8a72e9d1a987797d910fb63b76d5590856.tar.bz2 yuzu-fae65d8a72e9d1a987797d910fb63b76d5590856.tar.lz yuzu-fae65d8a72e9d1a987797d910fb63b76d5590856.tar.xz yuzu-fae65d8a72e9d1a987797d910fb63b76d5590856.tar.zst yuzu-fae65d8a72e9d1a987797d910fb63b76d5590856.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/game_list_p.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index eb1bf0775..92779a9c7 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h @@ -110,18 +110,22 @@ public: const auto& row1 = row_data.at(UISettings::values.row_1_text_id); const int row2_id = UISettings::values.row_2_text_id; - if (role == SortRole) + if (role == SortRole) { return row1.toLower(); + } - if (row2_id == 4) // None + // None + if (row2_id == 4) { return row1; + } const auto& row2 = row_data.at(row2_id); - if (row1 == row2) + if (row1 == row2) { return row1; + } - return QString(row1 + QStringLiteral("\n ") + row2); + return QStringLiteral("%1\n %2").arg(row1, row2); } return GameListItem::data(role); |