Commit aa674f4f authored by Nate Graham's avatar Nate Graham
Browse files

Expose group information to Dolphin's Information panel, tooltips, etc

Summary:
Expose Group information for files and folders so that it can be shown in Dolphin's Information panel, tooltips, etc.

FEATURE: 308002
FIXED-IN: 18.08.0

Test Plan:
Deploy change, create new user, open Dolphin, open Information Panel
- Group is not visible by default, as expected
- When made visible, Group appears between User and Permissions, as expected

Deploy change, use existing user account, open Dolphin, open Information Panel
- Group is not visible by default, as expected
- When made visible, Group appears between User and Permissions, as expected

{F5783397}

Reviewers: #baloo, michaelh

Reviewed By: michaelh

Subscribers: cfeck, anthonyfieroni, zzag, michaelh, broulik, #dolphin

Tags: #baloo

Differential Revision: https://phabricator.kde.org/D11897
parent d94852b4
......@@ -179,6 +179,7 @@ void FileMetaDataProvider::insertSingleFileBasicData()
m_data.insert("kfileitem#modified",
format.formatRelativeDateTime(item.time(KFileItem::ModificationTime), QLocale::LongFormat));
m_data.insert("kfileitem#owner", item.user());
m_data.insert("kfileitem#group", item.group());
m_data.insert("kfileitem#permissions", item.permissionsString());
}
......@@ -386,6 +387,7 @@ QString FileMetaDataProvider::label(const QString& metaDataLabel) const
{ "kfileitem#comment", I18N_NOOP2_NOSTRIP("@label", "Comment") },
{ "kfileitem#modified", I18N_NOOP2_NOSTRIP("@label", "Modified") },
{ "kfileitem#owner", I18N_NOOP2_NOSTRIP("@label", "Owner") },
{ "kfileitem#group", I18N_NOOP2_NOSTRIP("@label", "Group") },
{ "kfileitem#permissions", I18N_NOOP2_NOSTRIP("@label", "Permissions") },
{ "kfileitem#rating", I18N_NOOP2_NOSTRIP("@label", "Rating") },
{ "kfileitem#size", I18N_NOOP2_NOSTRIP("@label", "Size") },
......@@ -426,7 +428,8 @@ QString FileMetaDataProvider::group(const QString& label) const
uriGrouper.insert(QLatin1String("kfileitem#totalSize"), QLatin1String("0FileItemB"));
uriGrouper.insert(QLatin1String("kfileitem#modified"), QLatin1String("0FileItemC"));
uriGrouper.insert(QLatin1String("kfileitem#owner"), QLatin1String("0FileItemD"));
uriGrouper.insert(QLatin1String("kfileitem#permissions"), QLatin1String("0FileItemE"));
uriGrouper.insert(QLatin1String("kfileitem#group"), QLatin1String("0FileItemE"));
uriGrouper.insert(QLatin1String("kfileitem#permissions"), QLatin1String("0FileItemF"));
// Editable Data
uriGrouper.insert(QLatin1String("tags"), QLatin1String("1EditableDataA"));
......
......@@ -41,7 +41,7 @@ MetadataFilter::~MetadataFilter()
void MetadataFilter::initMetaInformationSettings()
{
const int currentVersion = 8; // increase version, if the blacklist of disabled
const int currentVersion = 9; // increase version, if the blacklist of disabled
// properties should be updated
KConfig config("baloofileinformationrc", KConfig::NoGlobals);
......@@ -84,6 +84,7 @@ void MetadataFilter::initMetaInformationSettings()
"Exif.Image.DateTime",
"Exif.Image.Orientation",
"kfileitem#owner",
"kfileitem#group",
"kfileitem#permissions",
0 // mandatory last entry
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment