diff options
author | Robert Adam <dev@robert-adam.de> | 2022-08-27 20:32:29 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2022-09-10 18:28:33 +0300 |
commit | 5873ba4fdd5b1b89a0fb20d7e8fdd43ea4b48179 (patch) | |
tree | ee29e95e41ff8c44cd8cd08a6b75a9d0fdcf0e20 /src/mumble | |
parent | 66c7ff6b4d60feac961d21c32792bb6cedd9b0da (diff) |
BUILD: Auto-generate licenses.h
Diffstat (limited to 'src/mumble')
-rw-r--r-- | src/mumble/About.cpp | 13 | ||||
-rw-r--r-- | src/mumble/main.cpp | 3 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/mumble/About.cpp b/src/mumble/About.cpp index e5dc07143..49fc8294c 100644 --- a/src/mumble/About.cpp +++ b/src/mumble/About.cpp @@ -28,10 +28,13 @@ AboutDialog::AboutDialog(QWidget *p) : QDialog(p) { qteLicense->setPlainText(License::license()); qteLicense->setAccessibleName(tr("License agreement")); - QTextEdit *qteAuthors = new QTextEdit(qtwTab); - qteAuthors->setReadOnly(true); - qteAuthors->setPlainText(License::authors()); - qteAuthors->setAccessibleName(tr("Authors")); + QTextBrowser *authors = new QTextBrowser(qtwTab); + authors->setReadOnly(true); + authors->setOpenExternalLinks(true); + authors->setText(tr("For a list of authors, please see <a " + "href=\"https://github.com/mumble-voip/mumble/graphs/contributors\">https://github.com/" + "mumble-voip/mumble/graphs/contributors</a>")); + authors->setAccessibleName(tr("Authors")); QTextBrowser *qtb3rdPartyLicense = new QTextBrowser(qtwTab); qtb3rdPartyLicense->setReadOnly(true); @@ -77,7 +80,7 @@ AboutDialog::AboutDialog(QWidget *p) : QDialog(p) { qtwTab->addTab(about, tr("&About Mumble")); qtwTab->addTab(qteLicense, tr("&License")); - qtwTab->addTab(qteAuthors, tr("A&uthors")); + qtwTab->addTab(authors, tr("A&uthors")); qtwTab->addTab(qtb3rdPartyLicense, tr("&Third-Party Licenses")); QPushButton *okButton = new QPushButton(tr("OK"), this); diff --git a/src/mumble/main.cpp b/src/mumble/main.cpp index 369cc9a72..90b8e5edc 100644 --- a/src/mumble/main.cpp +++ b/src/mumble/main.cpp @@ -356,7 +356,8 @@ int main(int argc, char **argv) { printf("%s\n", qPrintable(License::license())); return 0; } else if (args.at(i) == QLatin1String("-authors") || args.at(i) == QLatin1String("--authors")) { - printf("%s\n", qPrintable(License::authors())); + printf("%s\n", + "For a list of authors, please see https://github.com/mumble-voip/mumble/graphs/contributors"); return 0; } else if (args.at(i) == QLatin1String("-third-party-licenses") || args.at(i) == QLatin1String("--third-party-licenses")) { |