From b1c9b5126d591688b3dd94bfcc3487bc4bc3275b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 17 Feb 2009 20:37:34 +0000 Subject: * Use Nepomuk for getting the meta data instead of KFileMetaInfo. * Use a QScrollArea widget to embedd the meta data, as Nepomuk provides so much meta information that it might not fit into the panel. Open issues: * Add the possibility to configure which kind of meta information should be shown. * Check whether the receiving of the meta data for one file also might block the UI like when using KFileMetaInfo in combination with strigi. CCMAIL: sebastian@trueg.de BUG: 180742 BUG: 181592 svn path=/trunk/KDE/kdebase/apps/; revision=927542 --- src/panels/information/informationpanel.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/panels/information/informationpanel.h') diff --git a/src/panels/information/informationpanel.h b/src/panels/information/informationpanel.h index 2914345df..08eb30299 100644 --- a/src/panels/information/informationpanel.h +++ b/src/panels/information/informationpanel.h @@ -37,6 +37,7 @@ class QPixmap; class QString; class KFileItem; class QLabel; +class QScrollArea; class PhononWidget; class PixmapViewer; class MetaDataWidget; @@ -81,6 +82,9 @@ protected: /** @see QWidget::resizeEvent() */ virtual void resizeEvent(QResizeEvent* event); + /** @see QObject::eventFilter() */ + virtual bool eventFilter(QObject* obj, QEvent* event); + private slots: /** * Shows the information for the item of the URL which has been provided by @@ -137,13 +141,6 @@ private: */ void showMetaInfo(); - /** - * Converts the meta key \a key to a readable format into \a text. - * Returns true, if the string \a key represents a meta information - * that should be shown. If false is returned, \a text is not modified. - */ - bool convertMetaInfo(const QString& key, QString& text) const; - /** * Returns the item for file where the preview and meta information * should be received, if InformationPanel::showMultipleSelectionInfo() @@ -190,6 +187,8 @@ private: PixmapViewer* m_preview; PhononWidget* m_phononWidget; MetaDataWidget* m_metaDataWidget; + + QScrollArea* m_metaTextArea; MetaTextLabel* m_metaTextLabel; }; -- cgit v1.3.1