| 32 | #include <Qt> |
| 33 | |
| 34 | AboutDialog::AboutDialog(const QString& version, QWidget* parent) |
| 35 | : QDialog(parent), ui(new Ui::AboutDialog) |
| 36 | { |
| 37 | ui->setupUi(this); |
| 38 | |
| 39 | m_LicenseFiles[LICENSE_LGPL3] = "LGPL-v3.0.txt"; |
| 40 | m_LicenseFiles[LICENSE_LGPL21] = "GNU-LGPL-v2.1.txt"; |
| 41 | m_LicenseFiles[LICENSE_GPL3] = "GPL-v3.0.txt"; |
| 42 | m_LicenseFiles[LICENSE_GPL2] = "GPL-v2.0.txt"; |
| 43 | m_LicenseFiles[LICENSE_BOOST] = "boost.txt"; |
| 44 | m_LicenseFiles[LICENSE_7ZIP] = "7zip.txt"; |
| 45 | m_LicenseFiles[LICENSE_CCBY3] = "BY-SA-v3.0.txt"; |
| 46 | m_LicenseFiles[LICENSE_ZLIB] = "zlib.txt"; |
| 47 | m_LicenseFiles[LICENSE_PYTHON] = "python.txt"; |
| 48 | m_LicenseFiles[LICENSE_SSL] = "openssl.txt"; |
| 49 | m_LicenseFiles[LICENSE_CPPTOML] = "cpptoml.txt"; |
| 50 | m_LicenseFiles[LICENSE_UDIS] = "udis86.txt"; |
| 51 | m_LicenseFiles[LICENSE_SPDLOG] = "spdlog.txt"; |
| 52 | m_LicenseFiles[LICENSE_FMT] = "fmt.txt"; |
| 53 | m_LicenseFiles[LICENSE_SIP] = "sip.txt"; |
| 54 | m_LicenseFiles[LICENSE_CASTLE] = "Castle.txt"; |
| 55 | m_LicenseFiles[LICENSE_ANTLR] = "AntlrBuildTask.txt"; |
| 56 | m_LicenseFiles[LICENSE_DXTEX] = "DXTex.txt"; |
| 57 | m_LicenseFiles[LICENSE_VDF] = "ValveFileVDF.txt"; |
| 58 | |
| 59 | addLicense("Qt", LICENSE_LGPL3); |
| 60 | addLicense("Qt Json", LICENSE_GPL3); |
| 61 | addLicense("Boost Library", LICENSE_BOOST); |
| 62 | addLicense("7-zip", LICENSE_7ZIP); |
| 63 | addLicense("ZLib", LICENSE_NONE); |
| 64 | addLicense("Tango Icon Theme", LICENSE_NONE); |
| 65 | addLicense("RRZE Icon Set", LICENSE_CCBY3); |
| 66 | addLicense("Icons by Lorc, Delapouite and sbed available on http://game-icons.net", |
| 67 | LICENSE_CCBY3); |
| 68 | addLicense("Castle Core", LICENSE_CASTLE); |
| 69 | addLicense("ANTLR", LICENSE_ANTLR); |
| 70 | addLicense("LOOT", LICENSE_GPL3); |
| 71 | addLicense("Python", LICENSE_PYTHON); |
| 72 | addLicense("OpenSSL", LICENSE_SSL); |
| 73 | addLicense("cpptoml", LICENSE_CPPTOML); |
| 74 | addLicense("Udis86", LICENSE_UDIS); |
| 75 | addLicense("spdlog", LICENSE_SPDLOG); |
| 76 | addLicense("{fmt}", LICENSE_FMT); |
| 77 | addLicense("SIP", LICENSE_SIP); |
| 78 | addLicense("DXTex Headers", LICENSE_DXTEX); |
| 79 | addLicense("Valve File VDF Reader", LICENSE_VDF); |
| 80 | |
| 81 | ui->nameLabel->setText( |
| 82 | QString("<span style=\"font-size:12pt; font-weight:600;\">%1 %2</span>") |
| 83 | .arg(ui->nameLabel->text()) |
| 84 | .arg(version)); |
| 85 | #if defined(HGID) |
| 86 | ui->revisionLabel->setText(ui->revisionLabel->text() + " " + HGID); |
| 87 | #elif defined(GITID) |
| 88 | ui->revisionLabel->setText(ui->revisionLabel->text() + " " + GITID); |
| 89 | #else |
| 90 | ui->revisionLabel->setText(ui->revisionLabel->text() + " unknown"); |
| 91 | #endif |
nothing calls this directly
no test coverage detected