From a4ede4e0ebaf0bba57da8fc2924577f1a8ff7b54 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 1 Apr 2012 16:42:46 +0200 Subject: Allow showing Nepomuk metadata inside views Metadata like image-size, rating, comments, tags, ... can be shown now in the view (e.g. as column in the Details mode). Still open: The rating-information needs to be shown as stars. In the context of this feature also the following bugs have been fixed: - Fix visual glitches in the header of the Details mode - Improve the minimum column width calculation to respect also the headling and not only the content BUG: 296782 FIXED-IN: 4.9.0 --- src/kitemviews/kfileitemmodel.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/kitemviews/kfileitemmodel.h') diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index 0b1885a8c..4824dec3d 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -162,8 +162,16 @@ public: { QByteArray role; QString translation; QString group; + bool requiresNepomuk; + bool requiresIndexer; }; + /** + * @return Provides static information for all available roles that + * are supported by KFileItemModel. Some roles can only be + * determined if Nepomuk is enabled and/or the Nepomuk + * indexing is enabled. + */ static QList rolesInformation(); signals: @@ -344,6 +352,8 @@ private: const char* const roleTranslation; const char* const groupTranslationContext; const char* const groupTranslation; + const bool requiresNepomuk; + const bool requiresIndexer; }; /** -- cgit v1.3.1