diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
| commit | 69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch) | |
| tree | ebc98370a697a9bbd6b973a14fa5113c475c6db7 /revision_utils.cpp | |
| parent | 3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff) | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg'
with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
Diffstat (limited to 'revision_utils.cpp')
| -rw-r--r-- | revision_utils.cpp | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/revision_utils.cpp b/revision_utils.cpp index 9c8f6964..83c416f1 100644 --- a/revision_utils.cpp +++ b/revision_utils.cpp @@ -76,12 +76,19 @@ QString display_revision () source_revision = source_revision.left (6); if (source_revision != build_revision.left (6)) { - return QString {"source %1 (build %2)"}.arg (source_revision, build_revision); + return QString {"(source %1, build %2)"}.arg ( + source_revision, + build_revision.isEmpty () ? QString {"unavailable"} : build_revision); } } #endif - return build_revision; + if (build_revision.isEmpty ()) + { + return QString {"(revision unavailable)"}; + } + + return QString {"(revision %1)"}.arg (build_revision); } QString version (bool include_patch) @@ -104,6 +111,13 @@ QString program_title (QString const& revision) return id + " " + revision ; } +QString branded_program_title (QString const& revision) +{ + // applicationName() itself must stay plain ASCII -- it also names the jt9 shared-memory key and settings/lock/temp paths. + QString id {QCoreApplication::applicationName () + "™ v" + QCoreApplication::applicationVersion ()}; + return id + " " + revision ; +} + QString http_user_agent () { // See User-Agent format definition https://www.rfc-editor.org/rfc/rfc9110#name-user-agent @@ -115,3 +129,23 @@ QString http_user_agent () return QString {"WSJT-X/" + version () + "_" + revision ()}.simplified () + " " + platform; } + +QString copyright_notice_text () +{ + return QCoreApplication::translate ( + "main", + "If you make fair use of any part of WSJT-X, MAP65, QMAP, or our " + "associated utility programs under terms of the GNU General Public " + "License, you must display the following copyright notice prominently " + "in your derivative work:\n\n" + "\"The algorithms, source code, look-and-feel of WSJT-X, MAP65, QMAP, " + "and related programs, and protocol specifications for the modes " + "FSK441, FST4, FST4W, FT4, FT8, ISCAT, JT4, JT6M, JT9, JT65, JTMS, " + "JTTY, MSK144, QRA64, Q65, and WSPR are Copyright (C) 2001-2026 by one " + "or more of the following authors: Joseph Taylor, K1JT; Bill " + "Somerville, G4WJS; Steven Franke, K9AN; Nico Palermo, IV3NWV; Greg " + "Beam, KI7MT; Michael Black, W9MDB; Edson Pereira, PY2SDR; Philip Karn, " + "KA9Q; Uwe Risse, DG2YCB; Brian Moran, N9ADG; Roger Rehr, W3SZ; John " + "Nelson, G4KLA; Charlie Suckling, DL3WDG; Terrell Deppe, KJ5HST; David " + "Christle, KD0BTO; and other members of the WSJT™ Development Team.\""); +} |
