┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/kmetadatawidget.cpp
diff options
context:
space:
mode:
authorSebastian Trueg <[email protected]>2009-12-07 16:41:37 +0000
committerSebastian Trueg <[email protected]>2009-12-07 16:41:37 +0000
commit25b9640456c3238a10252691b772caf61f1281b7 (patch)
tree842462e54f1af674af7ae8dbf4d83e7dbc880c3b /src/panels/information/kmetadatawidget.cpp
parentf4067a705af5c0c93dbbecdad51efc5a9062f19a (diff)
Added all code necessary for clickable tags in the KTaggingWidget. As soon as we figured out how to
only show links on hover we are good to go. This is actually a fix as resources in the rest of the info view are already clickable. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=1059908
Diffstat (limited to 'src/panels/information/kmetadatawidget.cpp')
-rw-r--r--src/panels/information/kmetadatawidget.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/panels/information/kmetadatawidget.cpp b/src/panels/information/kmetadatawidget.cpp
index 819e9f26d..8b658a03f 100644
--- a/src/panels/information/kmetadatawidget.cpp
+++ b/src/panels/information/kmetadatawidget.cpp
@@ -98,6 +98,8 @@ public:
void slotLinkActivated(const QString& link);
#ifdef HAVE_NEPOMUK
+ void slotTagActivated(const Nepomuk::Tag& tag);
+
/**
* Disables the metadata widget and starts the job that
* changes the meta data asynchronously. After the job
@@ -189,6 +191,8 @@ KMetaDataWidget::Private::Private(KMetaDataWidget* parent) :
m_taggingWidget = new KTaggingWidget(parent);
connect(m_taggingWidget, SIGNAL(tagsChanged(const QList<Nepomuk::Tag>&)),
q, SLOT(slotTagsChanged(const QList<Nepomuk::Tag>&)));
+ connect(m_taggingWidget, SIGNAL(tagActivated(const Nepomuk::Tag&)),
+ q, SLOT(slotTagActivated(const Nepomuk::Tag&)));
m_commentWidget = new KCommentWidget(parent);
connect(m_commentWidget, SIGNAL(commentChanged(const QString&)),
@@ -425,6 +429,13 @@ void KMetaDataWidget::Private::slotCommentChanged(const QString& comment)
#endif
}
+#ifdef HAVE_NEPOMUK
+void KMetaDataWidget::Private::slotTagActivated(const Nepomuk::Tag& tag)
+{
+ emit q->urlActivated(tag.resourceUri());
+}
+#endif
+
void KMetaDataWidget::Private::slotMetaDataUpdateDone()
{
#ifdef HAVE_NEPOMUK