About: Update trademark information and add OSS text

Fixes: QTCREATORBUG-30432
Change-Id: Ife113855cf716a4bec9b42cf7924665287bbeccd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Eike Ziller
2024-09-09 16:05:37 +02:00
parent 8245981cbd
commit 810a855b42

View File

@@ -1183,6 +1183,7 @@ void ICore::saveSettings(SaveSettingsReason reason)
QStringList ICore::additionalAboutInformation() QStringList ICore::additionalAboutInformation()
{ {
auto aboutInformation = d->m_aboutInformation; auto aboutInformation = d->m_aboutInformation;
if (!d->m_prependAboutInformation.isEmpty())
aboutInformation.prepend(d->m_prependAboutInformation); aboutInformation.prepend(d->m_prependAboutInformation);
return aboutInformation; return aboutInformation;
} }
@@ -1200,7 +1201,7 @@ void ICore::clearAboutInformation()
*/ */
void ICore::setPrependAboutInformation(const QString &line) void ICore::setPrependAboutInformation(const QString &line)
{ {
d->m_prependAboutInformation = line; d->m_prependAboutInformation = line.toHtmlEscaped();
} }
/*! /*!
@@ -1208,7 +1209,7 @@ void ICore::setPrependAboutInformation(const QString &line)
*/ */
void ICore::appendAboutInformation(const QString &line) void ICore::appendAboutInformation(const QString &line)
{ {
d->m_aboutInformation.append(line); d->m_aboutInformation.append(line.toHtmlEscaped());
} }
/*! /*!
@@ -1253,33 +1254,30 @@ QString ICore::aboutInformationHtml()
QLatin1String(__TIME__)); QLatin1String(__TIME__));
#endif #endif
const QString br = QLatin1String("<br/>"); static const QString br = QLatin1String("<br/>");
const auto wrapBr = [](const QString &s) { return s.isEmpty() ? QString() : br + s + br; };
const QStringList additionalInfoLines = ICore::additionalAboutInformation(); const QStringList additionalInfoLines = ICore::additionalAboutInformation();
const QString additionalInfo = const QString additionalInfo = additionalInfoLines.join(br);
QStringList(Utils::transform(additionalInfoLines, &QString::toHtmlEscaped)).join(br);
const QString information const QString information
= Tr::tr("<h3>%1</h3>" = QString("<h3>%1</h3>"
"%2<br/>" "%2"
"%3" "%3"
"%4" "%4"
"%5" "%5"
"<br/>" "%6")
"%6<br/>"
"<br/>"
"The program is provided AS IS with NO WARRANTY OF ANY KIND, "
"INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A "
"PARTICULAR PURPOSE.<br/>")
.arg( .arg(
ICore::versionString(), ICore::versionString(),
buildCompatibilityString, buildCompatibilityString + br,
buildDateInfo, buildDateInfo,
ideRev, ideRev,
additionalInfo.isEmpty() ? QString() : br + additionalInfo + br, wrapBr(additionalInfo),
appInfo.copyright) wrapBr(appInfo.copyright))
+ "<br/>" + br
+ Tr::tr("The Qt logo as well as Qt®, Qt Quick®, Built with Qt®, Boot to Qt®, " + Tr::tr("The Qt logo, axivion stopping software erosion logo, Qt Group logo, as well as "
"Qt Quick Compiler®, Qt Enterprise®, Qt Mobile® and Qt Embedded® are " "Qt®, Axivion®, avixion stopping software erosion®, Boot to Qt®, Built with "
"registered trademarks of The Qt Company Ltd."); "Qt®, Coco®, froglogic®, Qt Cloud Services®, Qt Developer Days®, Qt Embedded®, "
"Qt Enterprise®, Qt Group®, Qt Mobile®, Qt Quick®, Qt Quick Compiler®, Squish® "
"are registered trademarks of The Qt Company Ltd. or its subsidiaries.");
return information; return information;
} }
@@ -1312,6 +1310,14 @@ namespace Internal {
void ICorePrivate::init() void ICorePrivate::init()
{ {
m_aboutInformation = {
Tr::tr("%1 is free software, and you are welcome to redistribute it under <a "
"href=\"%2\">certain conditions</a>. For some components, different conditions "
"might apply though.")
.arg(
QGuiApplication::applicationDisplayName(),
"https://www.gnu.org/licenses/gpl-3.0.en.html")};
m_mainwindow = new MainWindow; m_mainwindow = new MainWindow;
m_progressManager = new ProgressManagerPrivate; m_progressManager = new ProgressManagerPrivate;