forked from qt-creator/qt-creator
tr()-Fixes in CLANG code model.
Do not use QObject::tr(), use native file paths, use complete contexts. Change-Id: Icc4990b4c2ca5b9ae6f6b639db9e1a45a93e0a65 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -1173,9 +1173,8 @@ void ClangCompletionAssistProcessor::completeIncludePath(const QString &realPath
|
||||
const QStringList &suffixes)
|
||||
{
|
||||
QDirIterator i(realPath, QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot);
|
||||
const QString hint =
|
||||
QObject::tr("Location: ", "Parent folder for proposed #include completion")
|
||||
+ QDir::cleanPath(realPath);
|
||||
//: Parent folder for proposed #include completion
|
||||
const QString hint = tr("Location: %1").arg(QDir::toNativeSeparators(QDir::cleanPath(realPath)));
|
||||
while (i.hasNext()) {
|
||||
const QString fileName = i.next();
|
||||
const QFileInfo fileInfo = i.fileInfo();
|
||||
|
Reference in New Issue
Block a user