diff options
| author | Vishesh Handa <[email protected]> | 2013-01-02 16:34:18 +0530 |
|---|---|---|
| committer | Vishesh Handa <[email protected]> | 2013-01-02 16:35:37 +0530 |
| commit | bf202f3931c804af1c03bd958a8e946bab8b4b52 (patch) | |
| tree | d9273ca30aebf282960ba2b5902726cf5910953d /src/panels | |
| parent | eae273ad6e6cb522459480edacda262aecc6cd41 (diff) | |
Dolphin Information Panel: Use Nepomuk2::FileMetadataWidget
Instead of the KFileMetadataWidget. The Nepomuk widget is just a copy of
the KFileMetadataWidget which utilizes Nepomuk2.
Diffstat (limited to 'src/panels')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 5 | ||||
| -rw-r--r-- | src/panels/information/informationpanelcontent.h | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index 39ed1d2bd..355a57196 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -21,7 +21,6 @@ #include <KDialog> #include <KFileItem> -#include <kfilemetadatawidget.h> #include <KGlobalSettings> #include <KIO/JobUiDelegate> #include <KIO/PreviewJob> @@ -32,6 +31,8 @@ #include <kseparator.h> #include <KStringHandler> +#include <nepomuk2/filemetadatawidget.h> + #include <panels/places/placesitem.h> #include <panels/places/placesitemmodel.h> @@ -106,7 +107,7 @@ InformationPanelContent::InformationPanelContent(QWidget* parent) : const bool previewsShown = InformationPanelSettings::previewsShown(); m_preview->setVisible(previewsShown); - m_metaDataWidget = new KFileMetaDataWidget(parent); + m_metaDataWidget = new Nepomuk2::FileMetaDataWidget(parent); m_metaDataWidget->setFont(KGlobalSettings::smallestReadableFont()); m_metaDataWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum); connect(m_metaDataWidget, SIGNAL(urlActivated(KUrl)), this, SIGNAL(urlActivated(KUrl))); diff --git a/src/panels/information/informationpanelcontent.h b/src/panels/information/informationpanelcontent.h index c0412e567..2a369bbbc 100644 --- a/src/panels/information/informationpanelcontent.h +++ b/src/panels/information/informationpanelcontent.h @@ -26,7 +26,6 @@ #include <KVBox> class KFileItemList; -class KFileMetaDataWidget; class PhononWidget; class PixmapViewer; class PlacesItemModel; @@ -35,6 +34,10 @@ class QString; class QLabel; class QScrollArea; +namespace Nepomuk2 { + class FileMetaDataWidget; +} + /** * @brief Manages the widgets that display the meta information * for file items of the Information Panel. @@ -133,7 +136,7 @@ private: PixmapViewer* m_preview; PhononWidget* m_phononWidget; QLabel* m_nameLabel; - KFileMetaDataWidget* m_metaDataWidget; + Nepomuk2::FileMetaDataWidget* m_metaDataWidget; QScrollArea* m_metaDataArea; PlacesItemModel* m_placesItemModel; |
