mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Port away from deprecated QDateTime::.toTime_t method
This commit is contained in:
parent
e30494323d
commit
bff2ef9385
|
@ -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)";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue