19#include "ui_aboutdialog.h"
26#include <QWebEnginePage>
27#include <QWebEngineProfile>
28#include <QtWebEngineCoreVersion>
34 setAttribute(Qt::WA_DeleteOnClose);
37 ui->label->setPixmap(QIcon(
QSL(
":icons/other/about.svg")).pixmap(QSize(256, 100) * 1.1));
47void AboutDialog::showAbout()
50 aboutHtml +=
QSL(
"<div style='margin:0px 20px;'>");
51 aboutHtml += tr(
"<p><b>Application version %1</b><br/>").arg(
52#ifdef FALKON_GIT_REVISION
53 QString(
QSL(
"%1 (%2)")).arg(QString::fromLatin1(
Qz::VERSION),
QL1S(FALKON_GIT_REVISION))
58 aboutHtml += tr(
"<b>QtWebEngine version %1</b></p>").arg(QStringLiteral(QTWEBENGINECORE_VERSION_STR));
59 aboutHtml += QStringLiteral(
"<p>© %1 %2<br/>").arg(QString::fromLatin1(
Qz::COPYRIGHT), QString::fromLatin1(
Qz::AUTHOR));
60 aboutHtml += QStringLiteral(
"<a href=%1>%1</a></p>").arg(QString::fromLatin1(
Qz::WWWADDRESS));
61 aboutHtml += QStringLiteral(
"<p>") +
mApp->userAgentManager()->defaultUserAgent() + QStringLiteral(
"</p>");
62 aboutHtml += QStringLiteral(
"</div>");
63 ui->textLabel->setText(aboutHtml);
64 setFixedHeight(sizeHint().height());
AboutDialog(QWidget *parent=nullptr)
FALKON_EXPORT const char * AUTHOR
FALKON_EXPORT const char * VERSION
FALKON_EXPORT const char * WWWADDRESS
FALKON_EXPORT const char * COPYRIGHT