summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwlqttouch_p.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@theqtcompany.com>2015-05-08 14:55:14 +0200
committerJørgen Lind <jorgen.lind@theqtcompany.com>2015-08-28 13:09:42 +0200
commitd1359f8b0c2b8fcffc2112d2e29d530ac1ab7c9a (patch)
tree0f7fdee380c657914065230d522f91a89563088e /src/compositor/extensions/qwlqttouch_p.h
parent85b1d4e6524504321fa769457eea5fb3b7e62e7e (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/extensions/qwlqttouch_p.h')
-rw-r--r--src/compositor/extensions/qwlqttouch_p.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compositor/extensions/qwlqttouch_p.h b/src/compositor/extensions/qwlqttouch_p.h
index 94c90949b..42d35433b 100644
--- a/src/compositor/extensions/qwlqttouch_p.h
+++ b/src/compositor/extensions/qwlqttouch_p.h
@@ -50,7 +50,7 @@ class QWaylandSurfaceView;
namespace QtWayland {
-class TouchExtensionGlobal : public QWaylandExtension, public QtWaylandServer::qt_touch_extension
+class TouchExtensionGlobal : public QWaylandExtensionTemplate<TouchExtensionGlobal>, public QtWaylandServer::qt_touch_extension
{
Q_OBJECT
Q_PROPERTY(BehaviorFlags behaviorFlags READ behaviorFlags WRITE setBehviorFlags NOTIFY behaviorFlagsChanged)
@@ -70,9 +70,6 @@ public:
void setBehviorFlags(BehaviorFlags flags);
BehaviorFlags behaviorFlags() const { return m_flags; }
- const struct wl_interface *interface() const Q_DECL_OVERRIDE { return QtWaylandServer::qt_touch_extension::interface(); }
-
- static TouchExtensionGlobal *get(QWaylandExtensionContainer *container);
Q_SIGNALS:
void behaviorFlagsChanged();