diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/compositor/testkeyboardgrabber.cpp | 4 | ||||
-rw-r--r-- | tests/auto/compositor/testkeyboardgrabber.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/compositor/testkeyboardgrabber.cpp b/tests/auto/compositor/testkeyboardgrabber.cpp index f252e2c8c..315b7f4fd 100644 --- a/tests/auto/compositor/testkeyboardgrabber.cpp +++ b/tests/auto/compositor/testkeyboardgrabber.cpp @@ -33,10 +33,10 @@ TestKeyboardGrabber::TestKeyboardGrabber(QWaylandInputDevice *inputDevice) { } -bool TestKeyboardGrabber::setFocus(QWaylandSurface *surface) +void TestKeyboardGrabber::setFocus(QWaylandSurface *surface) { Q_EMIT focusedCalled(); - return QWaylandKeyboard::setFocus(surface); + QWaylandKeyboard::setFocus(surface); } void TestKeyboardGrabber::sendKeyPressEvent(uint code) diff --git a/tests/auto/compositor/testkeyboardgrabber.h b/tests/auto/compositor/testkeyboardgrabber.h index 350bacbdd..ca5f51628 100644 --- a/tests/auto/compositor/testkeyboardgrabber.h +++ b/tests/auto/compositor/testkeyboardgrabber.h @@ -34,7 +34,7 @@ class TestKeyboardGrabber : public QWaylandKeyboard public: TestKeyboardGrabber(QWaylandInputDevice *inputDevice); - bool setFocus(QWaylandSurface *surface) Q_DECL_OVERRIDE; + void setFocus(QWaylandSurface *surface) Q_DECL_OVERRIDE; void sendKeyModifiers(QWaylandClient *client, uint32_t serial) Q_DECL_OVERRIDE; void sendKeyPressEvent(uint code) Q_DECL_OVERRIDE; void sendKeyReleaseEvent(uint code) Q_DECL_OVERRIDE; |