6#include <QDesktopServices>
11#include "ui_abouthtmlcomponent.h"
40 void CAboutHtmlComponent::loadAbout()
42 if (!sGui || sGui->isShuttingDown())
48 static const QString htmlFixed = [=] {
60 ui->tbr_About->setHtml(htmlFixed);
61 ui->tbr_About->setOpenLinks(
false);
68 void CAboutHtmlComponent::onAnchorClicked(
const QUrl &url)
75 const QString possibleLegalFile =
77 QFile f(possibleLegalFile);
CAboutHtmlComponent(QWidget *parent=nullptr)
Constructor.
~CAboutHtmlComponent()
Destructor.
static QString appendFilePaths(const QString &path1, const QString &path2)
Append file paths.
static QString readFileToString(const QString &fileNameAndPath)
Read file into string.
static const QString & legalDirectory()
Where Legal files are located.
static const QString & aboutFilePath()
The about document file location.
High level reusable GUI components.
Free functions in swift::misc.
bool openUrl(const QUrl &url)
QFrame(QWidget *parent, Qt::WindowFlags f)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
void anchorClicked(const QUrl &link)
QString fileName(QUrl::ComponentFormattingOptions options) const const
QUrl fromLocalFile(const QString &localFile)
bool isRelative() const const