forked from qt-creator/qt-creator
Add trademark info to about dialog
Fixes: QTCREATORBUG-27410 Change-Id: I496c7088cdcab68ba007ab1e43bcf7bfed8955f6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -73,8 +73,8 @@ VersionDialog::VersionDialog(QWidget *parent)
|
|||||||
const QString additionalInfo =
|
const QString additionalInfo =
|
||||||
QStringList(Utils::transform(additionalInfoLines, &QString::toHtmlEscaped)).join(br);
|
QStringList(Utils::transform(additionalInfoLines, &QString::toHtmlEscaped)).join(br);
|
||||||
|
|
||||||
const QString description = tr(
|
const QString description
|
||||||
"<h3>%1</h3>"
|
= tr("<h3>%1</h3>"
|
||||||
"%2<br/>"
|
"%2<br/>"
|
||||||
"%3"
|
"%3"
|
||||||
"%4"
|
"%4"
|
||||||
@@ -91,7 +91,11 @@ VersionDialog::VersionDialog(QWidget *parent)
|
|||||||
ideRev,
|
ideRev,
|
||||||
additionalInfo.isEmpty() ? QString() : br + additionalInfo + br,
|
additionalInfo.isEmpty() ? QString() : br + additionalInfo + br,
|
||||||
QLatin1String(Constants::IDE_YEAR),
|
QLatin1String(Constants::IDE_YEAR),
|
||||||
QLatin1String(Constants::IDE_AUTHOR));
|
QLatin1String(Constants::IDE_AUTHOR))
|
||||||
|
+ "<br/>"
|
||||||
|
+ 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);
|
QLabel *copyRightLabel = new QLabel(description);
|
||||||
copyRightLabel->setWordWrap(true);
|
copyRightLabel->setWordWrap(true);
|
||||||
|
Reference in New Issue
Block a user