Commit a0459257 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Use our HtmlLabel for the Welcome message

This makes the two links in the Welcome message accessible. The
"select label text on focus" workaround is not enabled because this
breaks navigation to the links.

GnuPG-bug-id: 6034
parent a4b6783f
Pipeline #192214 passed with stage
in 5 minutes and 25 seconds
......@@ -11,6 +11,8 @@
#include "welcomewidget.h"
#include "htmllabel.h"
#include <version-kleopatra.h>
#include <Libkleo/GnuPG>
......@@ -62,7 +64,7 @@ public:
const QString learnMore = i18nc("%1 is link a wiki article", "You can learn more about this on <a href=\"%1\">Wikipedia</a>.", wikiUrl);
const auto labelText = templ.arg(welcome).arg(introduction).arg(keyExplanation).arg(privateKeyExplanation).arg(publicKeyExplanation).arg(learnMore);
mLabel = new QLabel{labelText, q};
mLabel = new HtmlLabel{labelText, q};
......@@ -139,7 +141,7 @@ public:
WelcomeWidget *const q;
QLabel *mLabel = nullptr;
HtmlLabel *mLabel = nullptr;
QToolButton *mGenerateBtn = nullptr;
QToolButton *mImportBtn = nullptr;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment