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
This commit is contained in:
parent
3636606b72
commit
02f0ea8fc2
@ -451,7 +451,7 @@ void process(QXmlStreamReader &xml, const QByteArray &headerPath, const QByteArr
|
|||||||
printf(" bool isResource() const { return m_resource != 0; }\n");
|
printf(" bool isResource() const { return m_resource != 0; }\n");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf(" static const struct ::wl_interface *interface();\n");
|
printf(" static const struct ::wl_interface *interface();\n");
|
||||||
printf(" static QByteArray name() { return interface()->name; }\n");
|
printf(" static QByteArray interfaceName() { return interface()->name; }\n");
|
||||||
printf(" static int interfaceVersion() { return interface()->version; }\n");
|
printf(" static int interfaceVersion() { return interface()->version; }\n");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user