Fix that menus didn't show ampersands in files names

And instead interpreted the ampersand + following character as an
accelerator key.

Task-number: QTCREATORBUG-17817
Change-Id: I327239499ce56e75fd12f2df5be60d4b04913acd
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Eike Ziller
2018-03-26 10:44:10 +02:00
parent 3fa8db13e9
commit f1e02c0826
7 changed files with 27 additions and 11 deletions

View File

@@ -375,4 +375,10 @@ int caseFriendlyCompare(const QString &a, const QString &b)
return a.compare(b, Qt::CaseSensitive);
}
QString quoteAmpersands(const QString &text)
{
QString result = text;
return result.replace("&", "&&");
}
} // namespace Utils