Pretty-print "creationtime" role

It was forgotten and would show up as ISO date string instead of human-readable string.

Differential Revision: https://phabricator.kde.org/D14878
This commit is contained in:
Kai Uwe Broulik 2018-08-16 16:27:55 +02:00
parent d58fb69408
commit f75b8a4287

View file

@ -78,7 +78,7 @@ QString KFileItemListWidgetInformant::roleText(const QByteArray& role,
const KIO::filesize_t size = roleValue.value<KIO::filesize_t>();
text = KFormat().formatByteSize(size);
}
} else if (role == "modificationtime" || role == "accesstime" || role == "deletiontime" || role == "imageDateTime") {
} else if (role == "modificationtime" || role == "creationtime" || role == "accesstime" || role == "deletiontime" || role == "imageDateTime") {
const QDateTime dateTime = roleValue.toDateTime();
text = QLocale().toString(dateTime, QLocale::ShortFormat);
} else {