mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 01:23:57 -07:00
remove version check
This commit is contained in:
parent
2aca0432b7
commit
4e7fbcda7a
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue