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

Make link to change log accessible

Use HtmlLabel for the label showing the available version and the link
to the changes.

GnuPG-bug-id: 6034
parent 54f6b689
......@@ -8,6 +8,8 @@
*/
#include "updatenotification.h"
#include <view/htmllabel.h>
#include <Libkleo/Compat>
#include <Libkleo/GnuPG>
......@@ -178,9 +180,9 @@ UpdateNotification::UpdateNotification(QWidget *parent, const QString &version)
KIconLoader::User);
logo->setPixmap(QIcon(iconPath).pixmap(100, 100));
auto label = new QLabel;
auto label = new HtmlLabel;
const QString boldVersion = QStringLiteral("<b>%1</b>").arg(version);
label->setText (i18nc("%1 is the version number", "Version %1 is available.", boldVersion) +
label->setHtml(i18nc("%1 is the version number", "Version %1 is available.", boldVersion) +
QStringLiteral("<br><br>") +
i18nc("Link to NEWS style changelog",
"See the <a href=\"https://www.gpg4win.org/change-history.html\">new features</a>."));
......
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