Changeset View
Changeset View
Standalone View
Standalone View
src/qt/utilitydialog.cpp
Show All 29 Lines | |||||
#include <cstdio> | #include <cstdio> | ||||
/** "Help message" or "About" dialog box */ | /** "Help message" or "About" dialog box */ | ||||
HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) | HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) | ||||
: QDialog(parent), ui(new Ui::HelpMessageDialog) { | : QDialog(parent), ui(new Ui::HelpMessageDialog) { | ||||
ui->setupUi(this); | ui->setupUi(this); | ||||
QString version = QString{PACKAGE_NAME} + " " + tr("version") + " " + | QString version = QString{PACKAGE_NAME} + " " + tr("version") + " " + | ||||
QString::fromStdString(FormatFullVersion()) + " (" + | QString::fromStdString(FormatFullVersion()); | ||||
QString::fromStdString(NETWORK_NAME) + " network)"; | |||||
if (about) { | if (about) { | ||||
setWindowTitle(tr("About %1").arg(PACKAGE_NAME)); | setWindowTitle(tr("About %1").arg(PACKAGE_NAME)); | ||||
std::string licenseInfo = LicenseInfo(); | std::string licenseInfo = LicenseInfo(); | ||||
/// HTML-format the license message from the core | /// HTML-format the license message from the core | ||||
QString licenseInfoHTML = QString::fromStdString(LicenseInfo()); | QString licenseInfoHTML = QString::fromStdString(LicenseInfo()); | ||||
// Make URLs clickable | // Make URLs clickable | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |