Gui: do not remove ending puncuation when clean action title

This commit is contained in:
Zheng, Lei
2022-03-14 18:31:03 +08:00
committed by wwmayer
parent ae8ba0de3d
commit 2138189f8e

View File

@@ -222,9 +222,13 @@ QString Action::cleanTitle(const QString & text)
// Deal with QAction title mnemonic
static QRegularExpression re(QStringLiteral("&(.)"));
title.replace(re, QStringLiteral("\\1"));
// Probably not a good idea to trim ending punctuation
#if 0
// Trim line ending punctuation
static QRegularExpression rePunct(QStringLiteral("[[:punct:]]+$"));
title.replace(rePunct, QString());
#endif
return title;
}