mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
use single line titles in gamelist and recent games menu
This commit is contained in:
parent
7c897d5019
commit
9a1ee9e984
3 changed files with 21 additions and 8 deletions
|
@ -712,7 +712,7 @@ bool game_list_frame::Boot(const GameInfo& game)
|
|||
}
|
||||
else
|
||||
{
|
||||
Q_EMIT RequestAddRecentGame(q_string_pair(qstr(Emu.GetBoot()), qstr("[" + game.serial + "] " + game.name)));
|
||||
Q_EMIT RequestAddRecentGame(GUI::Recent_Game(qstr(Emu.GetBoot()), qstr("[" + game.serial + "] " + game.name)));
|
||||
Refresh(true);
|
||||
return true;
|
||||
}
|
||||
|
@ -939,8 +939,7 @@ int game_list_frame::PopulateGameList()
|
|||
auto l_GetItem = [](const std::string& text)
|
||||
{
|
||||
// force single line text ("hack" used instead of Qt shenanigans like Qt::TextSingleLine)
|
||||
QString formattedText = qstr(text);
|
||||
formattedText.replace("\n", " - ");
|
||||
QString formattedText = GUI::get_Single_Line(qstr(text));
|
||||
|
||||
QTableWidgetItem* curr = new QTableWidgetItem;
|
||||
curr->setFlags(curr->flags() & ~Qt::ItemIsEditable);
|
||||
|
@ -1053,8 +1052,7 @@ void game_list_frame::PopulateGameGrid(uint maxCols, const QSize& image_size, co
|
|||
|
||||
if (category == category::hdd_Game || category == category::disc_Game)
|
||||
{
|
||||
QString title = qstr(m_game_data[i].info.name);
|
||||
title.replace("\n", " - ");
|
||||
QString title = GUI::get_Single_Line(qstr(m_game_data[i].info.name));
|
||||
|
||||
m_xgrid->addItem(m_game_data[i].pxmap, title, i, r, c);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue