Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kfileitemlistwidget.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 71 | if (!roleValue.isNull()) { | |||
---|---|---|---|---|---|
75 | } else { | 75 | } else { | ||
76 | text = i18ncp("@item:intable", "%1 item", "%1 items", count); | 76 | text = i18ncp("@item:intable", "%1 item", "%1 items", count); | ||
77 | } | 77 | } | ||
78 | } | 78 | } | ||
79 | } else { | 79 | } else { | ||
80 | const KIO::filesize_t size = roleValue.value<KIO::filesize_t>(); | 80 | const KIO::filesize_t size = roleValue.value<KIO::filesize_t>(); | ||
81 | text = KFormat().formatByteSize(size); | 81 | text = KFormat().formatByteSize(size); | ||
82 | } | 82 | } | ||
83 | } else if (role == "modificationtime" || role == "accesstime" || role == "deletiontime") { | 83 | } else if (role == "modificationtime" || role == "accesstime" || role == "deletiontime" || role == "imageDateTime") { | ||
84 | const QDateTime dateTime = roleValue.toDateTime(); | 84 | const QDateTime dateTime = roleValue.toDateTime(); | ||
85 | text = QLocale().toString(dateTime, QLocale::ShortFormat); | 85 | text = QLocale().toString(dateTime, QLocale::ShortFormat); | ||
86 | } else { | 86 | } else { | ||
87 | text = KStandardItemListWidgetInformant::roleText(role, values); | 87 | text = KStandardItemListWidgetInformant::roleText(role, values); | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | return text; | 90 | return text; | ||
91 | } | 91 | } | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |