mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
Add document title to additional information
Allows showing the document title of e.g. a PDF alongside the file name BUG: 321356 Differential Revision: https://phabricator.kde.org/D3972
This commit is contained in:
parent
726515cfd4
commit
0cad00c39a
|
@ -2225,6 +2225,7 @@ const KFileItemModel::RoleInfoMap* KFileItemModel::rolesInfoMap(int& count)
|
|||
{ "rating", RatingRole, I18N_NOOP2_NOSTRIP("@label", "Rating"), 0, 0, true, false },
|
||||
{ "tags", TagsRole, I18N_NOOP2_NOSTRIP("@label", "Tags"), 0, 0, true, false },
|
||||
{ "comment", CommentRole, I18N_NOOP2_NOSTRIP("@label", "Comment"), 0, 0, true, false },
|
||||
{ "title", TitleRole, I18N_NOOP2_NOSTRIP("@label", "Title"), I18N_NOOP2_NOSTRIP("@label", "Document"), true, true },
|
||||
{ "wordCount", WordCountRole, I18N_NOOP2_NOSTRIP("@label", "Word Count"), I18N_NOOP2_NOSTRIP("@label", "Document"), true, true },
|
||||
{ "lineCount", LineCountRole, I18N_NOOP2_NOSTRIP("@label", "Line Count"), I18N_NOOP2_NOSTRIP("@label", "Document"), true, true },
|
||||
{ "imageSize", ImageSizeRole, I18N_NOOP2_NOSTRIP("@label", "Image Size"), I18N_NOOP2_NOSTRIP("@label", "Image"), true, true },
|
||||
|
|
|
@ -284,7 +284,7 @@ private:
|
|||
GroupRole, TypeRole, DestinationRole, PathRole,
|
||||
// User visible roles available with Baloo:
|
||||
CommentRole, TagsRole, RatingRole, ImageSizeRole, OrientationRole,
|
||||
WordCountRole, LineCountRole, ArtistRole, AlbumRole, DurationRole, TrackRole,
|
||||
WordCountRole, TitleRole, LineCountRole, ArtistRole, AlbumRole, DurationRole, TrackRole,
|
||||
OriginUrlRole,
|
||||
// Non-visible roles:
|
||||
IsDirRole, IsLinkRole, IsExpandedRole, IsExpandableRole, ExpandedParentsCountRole,
|
||||
|
|
|
@ -138,6 +138,7 @@ KBalooRolesProvider::KBalooRolesProvider() :
|
|||
{ "rating", "rating" },
|
||||
{ "tag", "tags" },
|
||||
{ "comment", "comment" },
|
||||
{ "title", "title" },
|
||||
{ "wordCount", "wordCount" },
|
||||
{ "lineCount", "lineCount" },
|
||||
{ "width", "imageSize" },
|
||||
|
|
Loading…
Reference in a new issue