mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-02 08:43:16 +00:00
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:
parent
cb14431ee5
commit
d98face501
33 changed files with 1824 additions and 181 deletions
|
@ -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;");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue