diff --git a/src/plugins/remotelinux/publickeydeploymentdialog.cpp b/src/plugins/remotelinux/publickeydeploymentdialog.cpp index 9d31ea580dc..6cf31ed16aa 100644 --- a/src/plugins/remotelinux/publickeydeploymentdialog.cpp +++ b/src/plugins/remotelinux/publickeydeploymentdialog.cpp @@ -29,6 +29,7 @@ #include #include +#include #include @@ -100,16 +101,15 @@ void PublicKeyDeploymentDialog::handleDeploymentError(const QString &errorMsg) void PublicKeyDeploymentDialog::handleDeploymentFinished(const QString &errorMsg) { QString buttonText; - const char *textColor; + QString textColor; if (errorMsg.isEmpty()) { buttonText = tr("Deployment finished successfully."); - textColor = "blue"; + textColor = Utils::creatorTheme()->color(Utils::Theme::TextColorNormal).name(); } else { buttonText = errorMsg; - textColor = "red"; + textColor = Utils::creatorTheme()->color(Utils::Theme::TextColorError).name(); } - setLabelText(QString::fromLatin1("%2").arg(QLatin1String(textColor), - buttonText)); + setLabelText(QString::fromLatin1("%2").arg(textColor, buttonText)); setCancelButtonText(tr("Close")); }