From 3a1eda28b928ea33e5106535935606c1edab5823 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 22 Apr 2022 09:24:16 +0200 Subject: Add trademark info to about dialog Fixes: QTCREATORBUG-27410 Change-Id: I496c7088cdcab68ba007ab1e43bcf7bfed8955f6 Reviewed-by: Reviewed-by: Leena Miettinen Reviewed-by: hjk --- src/plugins/coreplugin/versiondialog.cpp | 42 +++++++++++++++++--------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/src/plugins/coreplugin/versiondialog.cpp b/src/plugins/coreplugin/versiondialog.cpp index 14553cdcfc..5e91fd164e 100644 --- a/src/plugins/coreplugin/versiondialog.cpp +++ b/src/plugins/coreplugin/versiondialog.cpp @@ -73,25 +73,29 @@ VersionDialog::VersionDialog(QWidget *parent) const QString additionalInfo = QStringList(Utils::transform(additionalInfoLines, &QString::toHtmlEscaped)).join(br); - const QString description = tr( - "

%1

" - "%2
" - "%3" - "%4" - "%5" - "
" - "Copyright 2008-%6 %7. All rights reserved.
" - "
" - "The program is provided AS IS with NO WARRANTY OF ANY KIND, " - "INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A " - "PARTICULAR PURPOSE.
") - .arg(ICore::versionString(), - ICore::buildCompatibilityString(), - buildDateInfo, - ideRev, - additionalInfo.isEmpty() ? QString() : br + additionalInfo + br, - QLatin1String(Constants::IDE_YEAR), - QLatin1String(Constants::IDE_AUTHOR)); + const QString description + = tr("

%1

" + "%2
" + "%3" + "%4" + "%5" + "
" + "Copyright 2008-%6 %7. All rights reserved.
" + "
" + "The program is provided AS IS with NO WARRANTY OF ANY KIND, " + "INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A " + "PARTICULAR PURPOSE.
") + .arg(ICore::versionString(), + ICore::buildCompatibilityString(), + buildDateInfo, + ideRev, + additionalInfo.isEmpty() ? QString() : br + additionalInfo + br, + QLatin1String(Constants::IDE_YEAR), + QLatin1String(Constants::IDE_AUTHOR)) + + "
" + + tr("The Qt logo as well as Qt®, Qt Quick®, Built with Qt®, Boot to Qt®, " + "Qt Quick Compiler®, Qt Enterprise®, Qt Mobile® and Qt Embedded® are " + "registered trademarks of The Qt Company Ltd."); QLabel *copyRightLabel = new QLabel(description); copyRightLabel->setWordWrap(true); -- cgit v1.2.1