Gui: Use QStringLiteral

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-09 18:33:01 +01:00
parent bad9499d50
commit f647d4a1eb
83 changed files with 519 additions and 520 deletions

View File

@@ -100,7 +100,7 @@ PyObject* CommandPy::listByShortcut(PyObject *args)
for (Command* c : cmds) {
Action* action = c->getAction();
if (action) {
QString spc = QString::fromLatin1(" ");
QString spc = QStringLiteral(" ");
if (Base::asBoolean(bIsRegularExp)) {
QRegularExpression re(QString::fromLatin1(shortcut_to_find), QRegularExpression::CaseInsensitiveOption);
if (!re.isValid()) {