Replace QStringLiteral with QLatin1String

This commit is contained in:
Jonas Kvinge
2024-06-12 20:30:36 +02:00
parent 20595a11bc
commit 5451c110b1
64 changed files with 367 additions and 366 deletions

View File

@@ -131,19 +131,19 @@ public:
if ([event type] == NSEventTypeKeyDown && [event modifierFlags] & NSEventModifierFlagCommand) {
const QString keyString = toQString([event characters]);
if (keyString == QStringLiteral("a")) { // Cmd+a
if (keyString == QLatin1String("a")) { // Cmd+a
[self performSelector:@selector(selectText:)];
return YES;
}
else if (keyString == QStringLiteral("c")) { // Cmd+c
else if (keyString == QLatin1String("c")) { // Cmd+c
[[self currentEditor] copy: nil];
return YES;
}
else if (keyString == QStringLiteral("v")) { // Cmd+v
else if (keyString == QLatin1String("v")) { // Cmd+v
[[self currentEditor] paste: nil];
return YES;
}
else if (keyString == QStringLiteral("x")) { // Cmd+x
else if (keyString == QLatin1String("x")) { // Cmd+x
[[self currentEditor] cut: nil];
return YES;
}