Commit e4129fc3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against last qt5.15 without deprecated method

parent 17663226
......@@ -90,8 +90,11 @@ void DndFactoryTest::testPasteAllDayEvent2()
incidencesToPaste.append(allDayEvent);
QVERIFY(factory.copyIncidences(incidencesToPaste));
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const QDateTime newDateTime(QDate(2011, 1, 1));
#else
const QDateTime newDateTime(QDate(2011, 1, 1).startOfDay());
#endif
const uint originalLength = allDayEvent->dtStart().secsTo(allDayEvent->dtEnd());
// paste at the new time
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment