mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
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:
parent
d58fb69408
commit
f75b8a4287
|
@ -78,7 +78,7 @@ QString KFileItemListWidgetInformant::roleText(const QByteArray& role,
|
||||||
const KIO::filesize_t size = roleValue.value<KIO::filesize_t>();
|
const KIO::filesize_t size = roleValue.value<KIO::filesize_t>();
|
||||||
text = KFormat().formatByteSize(size);
|
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();
|
const QDateTime dateTime = roleValue.toDateTime();
|
||||||
text = QLocale().toString(dateTime, QLocale::ShortFormat);
|
text = QLocale().toString(dateTime, QLocale::ShortFormat);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue