From 660c1fd7679c244004ed91cd491226a2a6dc4293 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 13 Oct 2009 20:48:38 +0000 Subject: restore functionality that ratings, comments and tags get stored after the user changed the values svn path=/trunk/KDE/kdebase/apps/; revision=1034884 --- src/panels/information/metadatawidget.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/panels/information/metadatawidget.h') diff --git a/src/panels/information/metadatawidget.h b/src/panels/information/metadatawidget.h index 1b390b275..f12ce65d9 100644 --- a/src/panels/information/metadatawidget.h +++ b/src/panels/information/metadatawidget.h @@ -21,6 +21,19 @@ #ifndef METADATAWIDGET_H #define METADATAWIDGET_H +#include +#ifdef HAVE_NEPOMUK + #include +#else + // The HAVE_NEPOMUK macro cannot be used in combination with + // Q_PRIVATE_SLOT, hence a workaround is used for environments + // where Nepomuk is not available: + namespace Nepomuk { + typedef int Tag; + } +#endif + +#include #include class KFileItem; @@ -45,6 +58,10 @@ private: Private* d; Q_PRIVATE_SLOT(d, void slotLoadingFinished()) + Q_PRIVATE_SLOT(d, void slotRatingChanged(unsigned int rating)) + Q_PRIVATE_SLOT(d, void slotTagsChanged(const QList& tags)) + Q_PRIVATE_SLOT(d, void slotCommentChanged(const QString& comment)) + Q_PRIVATE_SLOT(d, void slotMetaDataUpdateDone()) }; #endif -- cgit v1.3.1