mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Add Page count and Publisher columns
BUG: 374561
This commit is contained in:
parent
4b4678040d
commit
a9ac1f1252
|
@ -2118,6 +2118,8 @@ int KFileItemModel::sortRoleCompare(const ItemData* a, const ItemData* b, const
|
||||||
case RatingRole:
|
case RatingRole:
|
||||||
case WidthRole:
|
case WidthRole:
|
||||||
case HeightRole:
|
case HeightRole:
|
||||||
|
case PublisherRole:
|
||||||
|
case PageCountRole:
|
||||||
case WordCountRole:
|
case WordCountRole:
|
||||||
case LineCountRole:
|
case LineCountRole:
|
||||||
case TrackRole:
|
case TrackRole:
|
||||||
|
@ -2644,6 +2646,8 @@ const KFileItemModel::RoleInfoMap* KFileItemModel::rolesInfoMap(int& count)
|
||||||
{ "comment", CommentRole, kli18nc("@label", "Comment"), KLazyLocalizedString(), true, false },
|
{ "comment", CommentRole, kli18nc("@label", "Comment"), KLazyLocalizedString(), true, false },
|
||||||
{ "title", TitleRole, kli18nc("@label", "Title"), kli18nc("@label", "Document"), true, true },
|
{ "title", TitleRole, kli18nc("@label", "Title"), kli18nc("@label", "Document"), true, true },
|
||||||
{ "author", AuthorRole, kli18nc("@label", "Author"), kli18nc("@label", "Document"), true, true },
|
{ "author", AuthorRole, kli18nc("@label", "Author"), kli18nc("@label", "Document"), true, true },
|
||||||
|
{ "publisher", PublisherRole, kli18nc("@label", "Publisher"), kli18nc("@label", "Document"), true, true },
|
||||||
|
{ "pageCount", PageCountRole, kli18nc("@label", "Page Count"), kli18nc("@label", "Document"), true, true },
|
||||||
{ "wordCount", WordCountRole, kli18nc("@label", "Word Count"), kli18nc("@label", "Document"), true, true },
|
{ "wordCount", WordCountRole, kli18nc("@label", "Word Count"), kli18nc("@label", "Document"), true, true },
|
||||||
{ "lineCount", LineCountRole, kli18nc("@label", "Line Count"), kli18nc("@label", "Document"), true, true },
|
{ "lineCount", LineCountRole, kli18nc("@label", "Line Count"), kli18nc("@label", "Document"), true, true },
|
||||||
{ "imageDateTime", ImageDateTimeRole, kli18nc("@label", "Date Photographed"), kli18nc("@label", "Image"), true, true },
|
{ "imageDateTime", ImageDateTimeRole, kli18nc("@label", "Date Photographed"), kli18nc("@label", "Image"), true, true },
|
||||||
|
|
|
@ -298,7 +298,7 @@ private:
|
||||||
GroupRole, TypeRole, ExtensionRole, DestinationRole, PathRole, DeletionTimeRole,
|
GroupRole, TypeRole, ExtensionRole, DestinationRole, PathRole, DeletionTimeRole,
|
||||||
// User visible roles available with Baloo:
|
// User visible roles available with Baloo:
|
||||||
CommentRole, TagsRole, RatingRole, DimensionsRole, WidthRole, HeightRole, ImageDateTimeRole, OrientationRole,
|
CommentRole, TagsRole, RatingRole, DimensionsRole, WidthRole, HeightRole, ImageDateTimeRole, OrientationRole,
|
||||||
WordCountRole, TitleRole, AuthorRole, LineCountRole, ArtistRole, GenreRole, AlbumRole, DurationRole, TrackRole, ReleaseYearRole,
|
PublisherRole, PageCountRole, WordCountRole, TitleRole, AuthorRole, LineCountRole, ArtistRole, GenreRole, AlbumRole, DurationRole, TrackRole, ReleaseYearRole,
|
||||||
BitrateRole, OriginUrlRole, AspectRatioRole, FrameRateRole,
|
BitrateRole, OriginUrlRole, AspectRatioRole, FrameRateRole,
|
||||||
// Non-visible roles:
|
// Non-visible roles:
|
||||||
IsDirRole, IsLinkRole, IsHiddenRole, IsExpandedRole, IsExpandableRole, ExpandedParentsCountRole,
|
IsDirRole, IsLinkRole, IsHiddenRole, IsExpandedRole, IsExpandableRole, ExpandedParentsCountRole,
|
||||||
|
|
|
@ -36,6 +36,8 @@ namespace {
|
||||||
{ Property::Comment, QByteArrayLiteral("comment") },
|
{ Property::Comment, QByteArrayLiteral("comment") },
|
||||||
{ Property::Title, QByteArrayLiteral("title") },
|
{ Property::Title, QByteArrayLiteral("title") },
|
||||||
{ Property::Author, QByteArrayLiteral("author") },
|
{ Property::Author, QByteArrayLiteral("author") },
|
||||||
|
{ Property::Publisher, QByteArrayLiteral("publisher") },
|
||||||
|
{ Property::PageCount, QByteArrayLiteral("pageCount") },
|
||||||
{ Property::WordCount, QByteArrayLiteral("wordCount") },
|
{ Property::WordCount, QByteArrayLiteral("wordCount") },
|
||||||
{ Property::LineCount, QByteArrayLiteral("lineCount") },
|
{ Property::LineCount, QByteArrayLiteral("lineCount") },
|
||||||
{ Property::Width, QByteArrayLiteral("width") },
|
{ Property::Width, QByteArrayLiteral("width") },
|
||||||
|
|
Loading…
Reference in a new issue