diff options
| author | Peter Penz <[email protected]> | 2009-02-17 20:37:34 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-02-17 20:37:34 +0000 |
| commit | b1c9b5126d591688b3dd94bfcc3487bc4bc3275b (patch) | |
| tree | e926d021126e9690374457d098e12c7e0e1d49a3 /src/panels/information/informationpanel.h | |
| parent | fda792a1f5a706c4be2d873fa77d504aa90b71e0 (diff) | |
* 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: [email protected]
BUG: 180742
BUG: 181592
svn path=/trunk/KDE/kdebase/apps/; revision=927542
Diffstat (limited to 'src/panels/information/informationpanel.h')
| -rw-r--r-- | src/panels/information/informationpanel.h | 13 |
1 files changed, 6 insertions, 7 deletions
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 @@ -138,13 +142,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() * returns false. @@ -190,6 +187,8 @@ private: PixmapViewer* m_preview; PhononWidget* m_phononWidget; MetaDataWidget* m_metaDataWidget; + + QScrollArea* m_metaTextArea; MetaTextLabel* m_metaTextLabel; }; |
