diff options
author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-05-08 14:55:14 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-08-28 13:09:42 +0200 |
commit | d1359f8b0c2b8fcffc2112d2e29d530ac1ab7c9a (patch) | |
tree | 0f7fdee380c657914065230d522f91a89563088e /src/compositor/wayland_wrapper/qwltouch.cpp | |
parent | 85b1d4e6524504321fa769457eea5fb3b7e62e7e (diff) |
Improve QWaylandExtension
By using curiously recurring template pattern we can generate a getter
which is very convenient, and all QWaylandExtensions should have this
casting operation
Change-Id: Idb5a786655f2e106cf5388b11ed71e8b6ddddec0
Diffstat (limited to 'src/compositor/wayland_wrapper/qwltouch.cpp')
-rw-r--r-- | src/compositor/wayland_wrapper/qwltouch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/qwltouch.cpp b/src/compositor/wayland_wrapper/qwltouch.cpp index 11ed148a2..77464d81d 100644 --- a/src/compositor/wayland_wrapper/qwltouch.cpp +++ b/src/compositor/wayland_wrapper/qwltouch.cpp @@ -138,7 +138,7 @@ void QWaylandTouchPrivate::sendFullTouchEvent(QTouchEvent *event) return; } - QtWayland::TouchExtensionGlobal *ext = qobject_cast<QtWayland::TouchExtensionGlobal *>(compositor()->extension(QtWaylandServer::qt_touch_extension::name())); + QtWayland::TouchExtensionGlobal *ext = QtWayland::TouchExtensionGlobal::get(compositor()); if (ext && ext->postTouchEvent(event, m_seat->mouseFocus())) return; |