mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
Qt: use QString::simplified() instead of get_single_line
hopefully this works
This commit is contained in:
parent
baea538c32
commit
9f1fe5775e
2 changed files with 3 additions and 13 deletions
|
@ -890,12 +890,9 @@ 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 = gui::get_Single_Line(qstr(text));
|
||||
|
||||
QTableWidgetItem* curr = new QTableWidgetItem;
|
||||
curr->setFlags(curr->flags() & ~Qt::ItemIsEditable);
|
||||
curr->setText(formattedText);
|
||||
curr->setText(qstr(text).simplified()); // simplified() forces single line text
|
||||
return curr;
|
||||
};
|
||||
|
||||
|
@ -1008,7 +1005,7 @@ void game_list_frame::PopulateGameGrid(int maxCols, const QSize& image_size, con
|
|||
|
||||
for (const auto& app : matching_apps)
|
||||
{
|
||||
QString title = gui::get_Single_Line(qstr(app.first->info.name));
|
||||
const QString title = qstr(app.first->info.name).simplified(); // simplified() forces single line text
|
||||
|
||||
m_xgrid->addItem(app.first->pxmap, title, app.second, r, c);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue