forked from qt-creator/qt-creator
Use double quotes instead of single quotes as per our guidelines.
Change-Id: Ib608bb49e26781aef1914085a5d801fcdcd5eb56 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
This commit is contained in:
@@ -120,7 +120,7 @@ bool FileNameValidatingLineEdit::validateFileName(const QString &name,
|
||||
if (qc.isSpace())
|
||||
*errorMessage = tr("Name contains white space.");
|
||||
else
|
||||
*errorMessage = tr("Invalid character '%1'.").arg(qc);
|
||||
*errorMessage = tr("Invalid character \"%1\".").arg(qc);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -130,7 +130,7 @@ bool FileNameValidatingLineEdit::validateFileName(const QString &name,
|
||||
const QLatin1String notAllowedSubString(notAllowedSubStrings[s]);
|
||||
if (name.contains(notAllowedSubString)) {
|
||||
if (errorMessage)
|
||||
*errorMessage = tr("Invalid characters '%1'.").arg(QString(notAllowedSubString));
|
||||
*errorMessage = tr("Invalid characters \"%1\".").arg(QString(notAllowedSubString));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user