From: Alexander Lohnau Date: Thu, 11 Nov 2021 18:54:44 +0000 (+0100) Subject: Port away from deprecated QDateTime::.toTime_t method X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/bff2ef93854f30a5e2f7316d67360da16f72df81 Port away from deprecated QDateTime::.toTime_t method --- diff --git a/src/panels/places/placesitem.cpp b/src/panels/places/placesitem.cpp index 9cac01f91..18f3f006e 100644 --- a/src/panels/places/placesitem.cpp +++ b/src/panels/places/placesitem.cpp @@ -264,7 +264,7 @@ QString PlacesItem::generateNewId() // " (V2)" to indicate that the ID has been generated by // a new version of the places view. static int count = 0; - return QString::number(QDateTime::currentDateTimeUtc().toTime_t()) + + return QString::number(QDateTime::currentDateTimeUtc().toSecsSinceEpoch()) + '/' + QString::number(count++) + " (V2)"; }