]> cloud.milkyroute.net Git - dolphin.git/commit
Use QLocale to display localized time role group
authorJérôme Lécuyer <jerome.4a4c@gmail.com>
Wed, 21 Aug 2024 23:27:07 +0000 (01:27 +0200)
committerMéven Car <meven@kde.org>
Fri, 23 Aug 2024 07:51:44 +0000 (07:51 +0000)
commit14f17839ab2dc3ddca8af1c66eaeb40df5ab9f3f
tree20dc9c0ad467d75a719be37a20f31fd43aa98eb3
parent62d292f8fb20d7fbad246f3420f25111fd67dd12
Use QLocale to display localized time role group

Use QLocale to format the QDateTime displayed as the role/label of a group.
`QDateTime::toString` format the date and month names in English.
`QLocale::toString` returns them localized.
See the note about day and month names at https://doc.qt.io/qt-6/qdatetime.html#toString

BUG: 488088
src/kitemviews/kfileitemmodel.cpp