aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-10-07 16:15:02 +0200
committerTobias Hunger <tobias.hunger@qt.io>2016-10-09 10:00:33 +0000
commite3b40fa6873d01f04519f4897f3c3f3ba6cc9f3c (patch)
tree0b7ff42b4248e2c730e675853e6f1cc2662686e6
parent966623d64b1a30691b747605a48dd3ef82072b17 (diff)
PathChooser: Consistently put "" around file names
This makes it a bit simpler to spot leading and trailing whitespaces. Maybe that could help with problems like QTCREATORBUG-16805, but even if not it makes our strings more consistent. Change-Id: I65c486721967d9d3e17020641a1144d593f9bde1 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--src/libs/utils/pathchooser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp
index 0e1d838e3c..bc20f85efc 100644
--- a/src/libs/utils/pathchooser.cpp
+++ b/src/libs/utils/pathchooser.cpp
@@ -542,7 +542,7 @@ bool PathChooser::validatePath(FancyLineEdit *edit, QString *errorMessage) const
}
if (!fi.isFile()) {
if (errorMessage)
- *errorMessage = tr("The path <b>%1</b> is not a file.").arg(QDir::toNativeSeparators(expandedPath));
+ *errorMessage = tr("The path \"%1\" is not a file.").arg(QDir::toNativeSeparators(expandedPath));
return false;
}
break;
@@ -554,7 +554,7 @@ bool PathChooser::validatePath(FancyLineEdit *edit, QString *errorMessage) const
}
if (fi.exists() && fi.isDir()) {
if (errorMessage)
- *errorMessage = tr("The path <b>%1</b> is not a file.").arg(QDir::toNativeSeparators(fi.absolutePath()));
+ *errorMessage = tr("The path \"%1\" is not a file.").arg(QDir::toNativeSeparators(fi.absolutePath()));
return false;
}
break;
@@ -566,7 +566,7 @@ bool PathChooser::validatePath(FancyLineEdit *edit, QString *errorMessage) const
}
if (!fi.isFile() || !fi.isExecutable()) {
if (errorMessage)
- *errorMessage = tr("The path <b>%1</b> is not an executable file.").arg(QDir::toNativeSeparators(expandedPath));
+ *errorMessage = tr("The path \"%1\" is not an executable file.").arg(QDir::toNativeSeparators(expandedPath));
return false;
}
break;
@@ -590,7 +590,7 @@ bool PathChooser::validatePath(FancyLineEdit *edit, QString *errorMessage) const
}
if (errorMessage)
- *errorMessage = tr("Full path: <b>%1</b>").arg(QDir::toNativeSeparators(expandedPath));
+ *errorMessage = tr("Full path: \"%1\"").arg(QDir::toNativeSeparators(expandedPath));
return true;
}