From 36ae0b6185e310113e0e31e247919da866d7f91b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 11 Nov 2009 18:59:29 +0000 Subject: * don't show the "Add Tags..." and "Add Comments..." links for the meta data inside a tooltip * minor cleanup of thread-interface to allow a proper sorting/merging on client side svn path=/trunk/KDE/kdebase/apps/; revision=1047662 --- src/panels/information/kloadmetadatathread_p.h | 29 +++++++++++++------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'src/panels/information/kloadmetadatathread_p.h') diff --git a/src/panels/information/kloadmetadatathread_p.h b/src/panels/information/kloadmetadatathread_p.h index 296b2192f..ea1a5cceb 100644 --- a/src/panels/information/kloadmetadatathread_p.h +++ b/src/panels/information/kloadmetadatathread_p.h @@ -22,6 +22,7 @@ #define DISABLE_NEPOMUK_LEGACY #include #include +#include #include #include @@ -36,6 +37,13 @@ class KLoadMetaDataThread : public QThread Q_OBJECT public: + struct Item + { + QString name; + QString label; + QString value; + }; + KLoadMetaDataThread(); virtual ~KLoadMetaDataThread(); @@ -62,8 +70,7 @@ public: int rating() const; QString comment() const; QList tags() const; - QList metaInfoLabels() const; - QList metaInfoValues() const; + QList items() const; QMap files() const; private slots: @@ -71,21 +78,16 @@ private slots: private: /** - * Assures that the settings for the meta information - * are initialized with proper default values. - */ - void initMetaInfoSettings(KConfigGroup& group); - - /** - * Temporary helper method for KDE 4.3 as we currently don't get - * translated labels for Nepmok literals: Replaces camelcase labels + * Temporary helper method there is a way to get translated + * labels for Nepmok literals: Replaces camelcase labels * like "fileLocation" by "File Location:". */ QString tunedLabel(const QString& label) const; /** - * Temporary helper method which tries to pretty print - * values. + * Temporary helper method until there is a proper formatting facility in Nepomuk. + * Here we simply handle the most common formatting situations that do not look nice + * when using Nepomuk::Variant::toString(). */ QString formatValue(const Nepomuk::Variant& value); @@ -93,8 +95,7 @@ private: int m_rating; QString m_comment; QList m_tags; - QList m_metaInfoLabels; - QList m_metaInfoValues; + QList m_items; QMap m_files; KUrl::List m_urls; -- cgit v1.3.1