summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@theqtcompany.com>2016-03-31 09:50:14 +0200
committerJohan Helsing <johan.helsing@theqtcompany.com>2016-03-31 09:33:38 +0000
commitecde73e9f5aa2b5d26e1497332d045130e1b5ccf (patch)
treee5f7b17afee76b4d9147d45b89be7fa813d5f413 /tests
parent188e316da118dba62fc72ad4510c1f6ffb9719d6 (diff)
Fix incorrect function signature in compositor test
Change-Id: I64174607a48b50c8371f53699568a96474dc10c6 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> Reviewed-by: Erik Larsson <erik@ortogonal.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/compositor/testkeyboardgrabber.cpp4
-rw-r--r--tests/auto/compositor/testkeyboardgrabber.h2
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;