From 8aff1dfd8552d7cf253a390709a746befbccb6f3 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 19 Jun 2023 17:14:34 +0200 Subject: [PATCH] Copilot: Add Tooltip to links Change-Id: I24a74272e58658fa607779e73baa7ada56bf085e Reviewed-by: hjk --- src/plugins/copilot/copilotoptionspage.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/copilot/copilotoptionspage.cpp b/src/plugins/copilot/copilotoptionspage.cpp index 5de3197735e..405b15990c8 100644 --- a/src/plugins/copilot/copilotoptionspage.cpp +++ b/src/plugins/copilot/copilotoptionspage.cpp @@ -13,6 +13,8 @@ #include #include +#include + using namespace Utils; using namespace LanguageClient; @@ -34,6 +36,9 @@ public: | Qt::LinksAccessibleByKeyboard | Qt::TextSelectableByMouse); helpLabel->setOpenExternalLinks(true); + connect(helpLabel, &QLabel::linkHovered, [](const QString &link) { + QToolTip::showText(QCursor::pos(), link); + }); // clang-format off helpLabel->setText(Tr::tr(R"(