remove version check

This commit is contained in:
RickyRister 2025-12-22 05:34:09 -08:00
parent 2aca0432b7
commit 4e7fbcda7a

View file

@ -421,10 +421,8 @@ bool GamesProxyModel::filterAcceptsRow(int sourceRow) const
{ {
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0) #if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
static const QDate epochDate = QDateTime::fromSecsSinceEpoch(0, QTimeZone::UTC).date(); static const QDate epochDate = QDateTime::fromSecsSinceEpoch(0, QTimeZone::UTC).date();
#elif (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
static const QDate epochDate = QDateTime::fromSecsSinceEpoch(0, Qt::UTC).date();
#else #else
static const QDate epochDate = QDateTime::fromTime_t(0, Qt::UTC).date(); static const QDate epochDate = QDateTime::fromSecsSinceEpoch(0, Qt::UTC).date();
#endif #endif
auto *model = qobject_cast<GamesModel *>(sourceModel()); auto *model = qobject_cast<GamesModel *>(sourceModel());
if (!model) if (!model)