RemoteLinux: Word wrap long messages in SSH key deployment dialog

Change-Id: I1a7ee450a48ee2f16df4dde4df2b79007f23638f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Martin Kampas
2021-08-24 14:37:40 +02:00
committed by Martin Kampas
parent 2d019ed659
commit acf0ee9fbf

View File

@@ -107,7 +107,9 @@ void PublicKeyDeploymentDialog::handleDeploymentFinished(const QString &errorMsg
buttonText = errorMsg; buttonText = errorMsg;
textColor = Utils::creatorTheme()->color(Utils::Theme::TextColorError).name(); textColor = Utils::creatorTheme()->color(Utils::Theme::TextColorError).name();
} }
setLabelText(QString::fromLatin1("<font color=\"%1\">%2</font>").arg(textColor, buttonText)); setLabelText(QString::fromLatin1("<font color=\"%1\">%2</font>")
.arg(textColor)
.arg(buttonText.replace("\n", "<br/>")));
setCancelButtonText(tr("Close")); setCancelButtonText(tr("Close"));
} }