diff options
| author | Alexander Lohnau <[email protected]> | 2021-11-11 19:54:44 +0100 |
|---|---|---|
| committer | Alexander Lohnau <[email protected]> | 2021-12-01 22:10:58 +0000 |
| commit | bff2ef93854f30a5e2f7316d67360da16f72df81 (patch) | |
| tree | 908845f42eb873bdad1ca507c237b6e005c4ada7 /src/panels/places | |
| parent | e30494323dc2f895026c14dd0f74742505ee3cda (diff) | |
Port away from deprecated QDateTime::.toTime_t method
Diffstat (limited to 'src/panels/places')
| -rw-r--r-- | src/panels/places/placesitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)"; } |
