diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-06-25 10:02:37 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-06-25 11:17:57 +0200 |
commit | 34a55705d23a44404495277a5608105f4a2d4fac (patch) | |
tree | 62ea2bb62b37c78962597c3b61e2cdabaf866a6a /src/core/web_event_factory.cpp | |
parent | 4c6a199faaa23b14a975e10d1aae31dbe30883cd (diff) |
Remove usages of deprecated QLatin1Literal
Task-number: QTBUG-76491
Change-Id: I19762b1d04fd7225963ac4e0e90cac6ca01256f7
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/web_event_factory.cpp')
-rw-r--r-- | src/core/web_event_factory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/web_event_factory.cpp b/src/core/web_event_factory.cpp index b97696030..3a9c1eb65 100644 --- a/src/core/web_event_factory.cpp +++ b/src/core/web_event_factory.cpp @@ -92,24 +92,24 @@ static KeyboardDriver keyboardDriverImpl() { QString platformName = QGuiApplication::platformName(); - if (platformName == QLatin1Literal("windows")) + if (platformName == QLatin1String("windows")) return KeyboardDriver::Windows; - if (platformName == QLatin1Literal("cocoa")) + if (platformName == QLatin1String("cocoa")) return KeyboardDriver::Cocoa; - if (platformName == QLatin1Literal("xcb") || platformName == QLatin1Literal("wayland")) + if (platformName == QLatin1String("xcb") || platformName == QLatin1String("wayland")) return KeyboardDriver::Xkb; #if QT_CONFIG(libinput) // Based on QEglFSIntegration::createInputHandlers and QLibInputKeyboard::processKey. - if (platformName == QLatin1Literal("eglfs") && !qEnvironmentVariableIntValue("QT_QPA_EGLFS_NO_LIBINPUT")) + if (platformName == QLatin1String("eglfs") && !qEnvironmentVariableIntValue("QT_QPA_EGLFS_NO_LIBINPUT")) return KeyboardDriver::Xkb; #endif #if QT_CONFIG(evdev) // Based on QEglFSIntegration::createInputHandlers. - if (platformName == QLatin1Literal("eglfs")) + if (platformName == QLatin1String("eglfs")) return KeyboardDriver::Evdev; #endif |