summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandseat.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-09-14 10:11:35 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-09-17 08:16:18 +0000
commitbe9557db507ea552251bbb1c1091ce115829f485 (patch)
treeb404452e936e78f31bd00390f2a8d4df342fd077 /src/compositor/compositor_api/qwaylandseat.cpp
parentc1e36e212090cd02bc238f70dfeb70d7c651e348 (diff)
Compositor: Rename QWaylandKeyboard::toScanCode to keyToScanCode
Since the key argument is an int, the signature looks ambiguous otherwise. Change-Id: I732971437ff7354ad3863ecfe42c779a06a84d69 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandseat.cpp')
-rw-r--r--src/compositor/compositor_api/qwaylandseat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/compositor_api/qwaylandseat.cpp b/src/compositor/compositor_api/qwaylandseat.cpp
index 60d4d6fd9..a7b01ef03 100644
--- a/src/compositor/compositor_api/qwaylandseat.cpp
+++ b/src/compositor/compositor_api/qwaylandseat.cpp
@@ -443,7 +443,7 @@ void QWaylandSeat::sendFullKeyEvent(QKeyEvent *event)
uint scanCode = event->nativeScanCode();
if (scanCode == 0)
- scanCode = d->keyboard->toScanCode(event->key());
+ scanCode = d->keyboard->keyToScanCode(event->key());
if (scanCode == 0) {
qWarning() << "Can't send Wayland key event: Unable to get a valid scan code";
@@ -477,7 +477,7 @@ void QWaylandSeat::sendKeyEvent(int qtKey, bool pressed)
return;
}
- if (auto scanCode = d->keyboard->toScanCode(qtKey)) {
+ if (auto scanCode = d->keyboard->keyToScanCode(qtKey)) {
if (pressed)
d->keyboard->sendKeyPressEvent(scanCode);
else