Skip to content

Commit 2ed8c02

Browse files
committed
Qt: Show English and localized names in tooltip
1 parent 29327b3 commit 2ed8c02

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/duckstation-qt/gamelistwidget.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,12 @@ QVariant GameListModel::data(const QModelIndex& index, int role, const GameList:
683683
return QtUtils::StringViewToQString(ge->serial);
684684

685685
case Column_Title:
686-
return QtUtils::StringViewToQString(ge->GetDisplayTitle(m_show_localized_titles));
686+
{
687+
if (!ge->has_custom_title && ge->dbentry && !ge->dbentry->localized_title.empty())
688+
return QString::fromStdString(fmt::format("{}\n{}", ge->dbentry->localized_title, ge->dbentry->title));
689+
else
690+
return QtUtils::StringViewToQString(ge->GetDisplayTitle(m_show_localized_titles));
691+
}
687692

688693
case Column_FileTitle:
689694
return QtUtils::StringViewToQString(Path::GetFileTitle(ge->path));

0 commit comments

Comments
 (0)