6 #include <QDesktopServices>
11 #include "ui_abouthtmlcomponent.h"
30 if (!myself) {
return; }
37 void CAboutHtmlComponent::loadAbout()
42 static const QString htmlFixed = [=] {
46 const QString html = CFileUtils::readFileToString(CSwiftDirectories::aboutFilePath());
54 ui->tbr_About->setHtml(htmlFixed);
55 ui->tbr_About->setOpenLinks(
false);
62 void CAboutHtmlComponent::onAnchorClicked(
const QUrl &url)
69 const QString possibleLegalFile =
70 CFileUtils::appendFilePaths(CSwiftDirectories::legalDirectory(), url.
fileName());
71 QFile f(possibleLegalFile);
bool isShuttingDown() const
Is application shutting down?
Display the HTML info "about swift".
virtual ~CAboutHtmlComponent()
Destructor.
SWIFT_GUI_EXPORT swift::gui::CGuiApplication * sGui
Single instance of GUI application object.
High level reusable GUI components.
Free functions in swift::misc.
bool openUrl(const QUrl &url)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void anchorClicked(const QUrl &link)
QString fileName(QUrl::ComponentFormattingOptions options) const const
QUrl fromLocalFile(const QString &localFile)
bool isRelative() const const