┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/tooltips/tooltipmanager.h
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2017-04-29 18:47:13 +0200
committerElvis Angelaccio <[email protected]>2017-05-08 16:04:19 +0200
commit73f885f9d3513bdfed2d22b21d0d1a88fe4f6a7a (patch)
treec466e746ab006136ca4175d3920a3d60a2709f54 /src/views/tooltips/tooltipmanager.h
parente74910cfdfd9db40b6950dc4fe030443cf285552 (diff)
Don't ignore tag clicks in the tooltips
Summary: Now that we can use the metadata widgets in the tooltips, we can also open the tags:// url if the user clicks some tag in a tooltip. The behavior is now consistent with the metadata widget in the information panel. Test Plan: Click a tag when the metadata tooltip shows up. Reviewers: emmanuelp Subscribers: #konqueror, #dolphin Differential Revision: https://phabricator.kde.org/D5658
Diffstat (limited to 'src/views/tooltips/tooltipmanager.h')
-rw-r--r--src/views/tooltips/tooltipmanager.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/views/tooltips/tooltipmanager.h b/src/views/tooltips/tooltipmanager.h
index 9c504c898..9f1f104f1 100644
--- a/src/views/tooltips/tooltipmanager.h
+++ b/src/views/tooltips/tooltipmanager.h
@@ -58,6 +58,13 @@ public:
*/
void hideToolTip();
+signals:
+ /**
+ * Is emitted when the user clicks a tag or a link
+ * in the metadata widget.
+ */
+ void urlActivated(const QUrl& url);
+
private slots:
void startContentRetrieval();
void setPreviewPix(const KFileItem& item, const QPixmap& pix);