6 #include "ui_aboutdialog.h"
17 const QPointer<CAboutDialog> myself(
this);
18 this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
22 if (!myself) {
return; }
23 myself->loadSwiftLicense();
27 if (!myself) {
return; }
28 myself->loadThirdPartyLicenses();
34 void CAboutDialog::init()
39 ui->pte_Info->appendPlainText(
"\nSetup follows:\n----");
41 ui->pte_Info->appendPlainText(
"\nScreen info follows:\n----");
45 void CAboutDialog::loadSwiftLicense()
49 ui->tbr_swiftLicense->setHtml(html);
52 void CAboutDialog::loadThirdPartyLicenses()
56 ui->tbr_ThirdPartyLicenses->setHtml(html);
data::CGlobalSetup getGlobalSetup() const
Global setup.
QString getInfoString(const QString &separator) const
Comprehensive info.
bool isShuttingDown() const
Is application shutting down?
const QString & getApplicationNameVersionDetailed() const
Version, name beta and dev info.
QString convertToQString(bool i18n=false) const
Cast as QString.
static QString screenInformation(const QString &separator="\n")
Info about screens.
CAboutDialog(QWidget *parent=nullptr)
Constructor.
virtual ~CAboutDialog()
Destructor.
static QString readFileToString(const QString &fileNameAndPath)
Read file into string.
static const QString & legalDirectory()
Where Legal files are located.
SWIFT_GUI_EXPORT swift::gui::CGuiApplication * sGui
Single instance of GUI application object.
High level reusable GUI components.
auto singleShot(int msec, QObject *target, F &&task)
Starts a single-shot timer which will call a task in the thread of the given object when it times out...