Replace QLatin1String with operator _L1

This commit is contained in:
Jonas Kvinge
2024-09-07 04:24:14 +02:00
parent e3e6a22172
commit 4270b12cd1
185 changed files with 2429 additions and 2139 deletions

View File

@@ -34,6 +34,8 @@
#include "globalshortcutgrabber.h"
#include "ui_globalshortcutgrabber.h"
using namespace Qt::StringLiterals;
GlobalShortcutGrabber::GlobalShortcutGrabber(QWidget *parent)
: QDialog(parent),
ui_(new Ui::GlobalShortcutGrabber),
@@ -110,7 +112,7 @@ bool GlobalShortcutGrabber::event(QEvent *e) {
}
void GlobalShortcutGrabber::UpdateText() {
ui_->label_key->setText(QLatin1String("<b>") + ret_.toString(QKeySequence::NativeText) + QLatin1String("</b>"));
ui_->label_key->setText("<b>"_L1 + ret_.toString(QKeySequence::NativeText) + "</b>"_L1);
}
void GlobalShortcutGrabber::Accepted() {