┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/metadatawidget.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-10-13 20:48:38 +0000
committerPeter Penz <[email protected]>2009-10-13 20:48:38 +0000
commit660c1fd7679c244004ed91cd491226a2a6dc4293 (patch)
tree897c8513e897c352c0d04da25219170561add129 /src/panels/information/metadatawidget.h
parente94a11cd1d601e481ce459b16c36fba1e0fd9a54 (diff)
restore functionality that ratings, comments and tags get stored after the user changed the values
svn path=/trunk/KDE/kdebase/apps/; revision=1034884
Diffstat (limited to 'src/panels/information/metadatawidget.h')
-rw-r--r--src/panels/information/metadatawidget.h17
1 files changed, 17 insertions, 0 deletions
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 <config-nepomuk.h>
+#ifdef HAVE_NEPOMUK
+ #include <Nepomuk/Tag>
+#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 <QList>
#include <QWidget>
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<Nepomuk::Tag>& tags))
+ Q_PRIVATE_SLOT(d, void slotCommentChanged(const QString& comment))
+ Q_PRIVATE_SLOT(d, void slotMetaDataUpdateDone())
};
#endif