fix deprecation (#2563)

This commit is contained in:
kalaposfos13 2025-02-28 16:35:13 +01:00 committed by GitHub
parent 75db253370
commit 99c7fc4049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,9 +158,18 @@ TrophyViewer::TrophyViewer(QString trophyPath, QString gameTrpPath) : QMainWindo
this->addDockWidget(Qt::LeftDockWidgetArea, trophyInfoDock); this->addDockWidget(Qt::LeftDockWidgetArea, trophyInfoDock);
// Connects checkbox signals to update trophy display // Connects checkbox signals to update trophy display
#if (QT_VERSION < QT_VERSION_CHECK(6, 7, 0))
connect(showEarnedCheck, &QCheckBox::stateChanged, this, &TrophyViewer::updateTableFilters); connect(showEarnedCheck, &QCheckBox::stateChanged, this, &TrophyViewer::updateTableFilters);
connect(showNotEarnedCheck, &QCheckBox::stateChanged, this, &TrophyViewer::updateTableFilters); connect(showNotEarnedCheck, &QCheckBox::stateChanged, this, &TrophyViewer::updateTableFilters);
connect(showHiddenCheck, &QCheckBox::stateChanged, this, &TrophyViewer::updateTableFilters); connect(showHiddenCheck, &QCheckBox::stateChanged, this, &TrophyViewer::updateTableFilters);
#else
connect(showEarnedCheck, &QCheckBox::checkStateChanged, this,
&TrophyViewer::updateTableFilters);
connect(showNotEarnedCheck, &QCheckBox::checkStateChanged, this,
&TrophyViewer::updateTableFilters);
connect(showHiddenCheck, &QCheckBox::checkStateChanged, this,
&TrophyViewer::updateTableFilters);
#endif
updateTrophyInfo(); updateTrophyInfo();
updateTableFilters(); updateTableFilters();