diff --git a/pcsx2-qt/Settings/GameSummaryWidget.cpp b/pcsx2-qt/Settings/GameSummaryWidget.cpp index 2601b3815e..5a2010c659 100644 --- a/pcsx2-qt/Settings/GameSummaryWidget.cpp +++ b/pcsx2-qt/Settings/GameSummaryWidget.cpp @@ -81,6 +81,8 @@ void GameSummaryWidget::populateInputProfiles() void GameSummaryWidget::populateDetails(const GameList::Entry* entry) { m_ui.title->setText(QString::fromStdString(entry->title)); + m_ui.titleSort->setText(QString::fromStdString(entry->title_sort)); + m_ui.titleEN->setText(QString::fromStdString(entry->title_en)); m_ui.path->setText(QString::fromStdString(entry->path)); m_ui.serial->setText(QString::fromStdString(entry->serial)); m_ui.crc->setText(QString::fromStdString(fmt::format("{:08X}", entry->crc))); @@ -88,6 +90,12 @@ void GameSummaryWidget::populateDetails(const GameList::Entry* entry) m_ui.region->setCurrentIndex(static_cast(entry->region)); m_ui.compatibility->setCurrentIndex(static_cast(entry->compatibility_rating)); + int row = 0; + m_ui.detailsFormLayout->getWidgetPosition(m_ui.titleSort, &row, nullptr); + m_ui.detailsFormLayout->setRowVisible(row, !entry->title_sort.empty()); + m_ui.detailsFormLayout->getWidgetPosition(m_ui.titleEN, &row, nullptr); + m_ui.detailsFormLayout->setRowVisible(row, !entry->title_en.empty()); + std::optional profile(m_dialog->getStringValue("EmuCore", "InputProfileName", std::nullopt)); if (profile.has_value()) m_ui.inputProfile->setCurrentIndex(m_ui.inputProfile->findText(QString::fromStdString(profile.value()))); @@ -128,7 +136,9 @@ void GameSummaryWidget::populateDiscPath(const GameList::Entry* entry) else { // Makes no sense to have disc override for a disc. - m_ui.detailsFormLayout->removeRow(8); + int row = 0; + m_ui.detailsFormLayout->getWidgetPosition(m_ui.label_discPath, &row, nullptr); + m_ui.detailsFormLayout->removeRow(row); m_ui.discPath = nullptr; m_ui.discPathBrowse = nullptr; m_ui.discPathClear = nullptr; diff --git a/pcsx2-qt/Settings/GameSummaryWidget.ui b/pcsx2-qt/Settings/GameSummaryWidget.ui index f16b6e57dd..d1a244dbad 100644 --- a/pcsx2-qt/Settings/GameSummaryWidget.ui +++ b/pcsx2-qt/Settings/GameSummaryWidget.ui @@ -55,55 +55,83 @@ - + - Path: + Sorting Title: - + true - + - Serial: + English Title: - + true - + - CRC: + Path: - + true + + + Serial: + + + + + + + true + + + + + + + CRC: + + + + + + + true + + + + Type: - + false @@ -146,14 +174,14 @@ - + Region: - + @@ -327,14 +355,14 @@ - + Compatibility: - + false @@ -385,14 +413,14 @@ - + Input Profile: - + @@ -407,14 +435,14 @@ - - + + Disc Path: - + @@ -435,7 +463,7 @@ - + Qt::Vertical @@ -448,7 +476,7 @@ - +