Game-compatibility - improved (#2367)

* Game-compatibility - improved

* +

none of these texts have a translation \o/

* Fix

- html_url has been removed, the url is now built dynamically from the issue_number, and the file has decreased in size from 537kb to 355KB;
-Fix QProgressDialog
- change the correct directory, from my ford to the official one

* TR
This commit is contained in:
DanielSvoboda 2025-02-08 12:25:55 -03:00 committed by GitHub
parent cb14431ee5
commit d98face501
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 1824 additions and 181 deletions

View file

@ -77,8 +77,10 @@ GameListFrame::GameListFrame(std::shared_ptr<GameInfoClass> game_info_get,
});
connect(this, &QTableWidget::cellClicked, this, [=, this](int row, int column) {
if (column == 2 && !m_game_info->m_games[row].compatibility.url.isEmpty()) {
QDesktopServices::openUrl(QUrl(m_game_info->m_games[row].compatibility.url));
if (column == 2 && m_game_info->m_games[row].compatibility.issue_number != "") {
auto url_issues = "https://github.com/shadps4-emu/shadps4-game-compatibility/issues/";
QDesktopServices::openUrl(
QUrl(url_issues + m_game_info->m_games[row].compatibility.issue_number));
}
});
}
@ -278,7 +280,8 @@ void GameListFrame::SetCompatibilityItem(int row, int column, CompatibilityEntry
tooltip_string = status_explanation;
} else {
tooltip_string =
"<p> <i>" + tr("Click to go to issue") + "</i>" + "<br>" + tr("Last updated") +
"<p> <i>" + tr("Click to see details on github") + "</i>" + "<br>" +
tr("Last updated") +
QString(": %1 (%2)").arg(entry.last_tested.toString("yyyy-MM-dd"), entry.version) +
"<br>" + status_explanation + "</p>";
}
@ -295,6 +298,7 @@ void GameListFrame::SetCompatibilityItem(int row, int column, CompatibilityEntry
dotLabel->setPixmap(circle_pixmap);
QLabel* label = new QLabel(m_compat_info->GetCompatStatusString(entry.status), widget);
this->horizontalHeader()->setSectionResizeMode(2, QHeaderView::ResizeToContents);
label->setStyleSheet("color: white; font-size: 16px; font-weight: bold;");