Browse Source

fix(history): Fix qt deprecation warning

Qt 5.15 has QDateTime(QDate()) deprecated. Fix a usage of the deprecated
constructor introduced in parent commit
reviewable/pr6374/r3
Mick Sayson 4 years ago committed by Anthony Bilinski
parent
commit
6c34fad9b6
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 5
      src/persistence/history.cpp

5
src/persistence/history.cpp

@ -1146,7 +1146,12 @@ QDateTime History::getDateWhereFindPhrase(const ToxPk& friendPk, const QDateTime @@ -1146,7 +1146,12 @@ QDateTime History::getDateWhereFindPhrase(const ToxPk& friendPk, const QDateTime
}
if (parameter.period == PeriodSearch::AfterDate || parameter.period == PeriodSearch::BeforeDate) {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
date = parameter.date.startOfDay();
#else
date = QDateTime(parameter.date);
#endif
}
QString period;

Loading…
Cancel
Save