diff options
author | Jorgen Lind <jorgen.lind@gmail.com> | 2012-07-05 13:59:22 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-06 03:54:30 +0200 |
commit | c6d7f9c1a091b516bcd18178e3eb2719b1ba3e4e (patch) | |
tree | 92bd93520ad074dc6f835ce4fcd46656d46f3f39 /src/plugins/platforms/xcb/qxcbnativeinterface.h | |
parent | 2f0dbd04394c6829726aa9ab48d6746b00c1b42c (diff) |
Implement nativeResourceFunctionForContext for xcb
Change-Id: Icf6c39fb456b39fec58ac2f74c569b9d01993589
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbnativeinterface.h')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbnativeinterface.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/xcb/qxcbnativeinterface.h b/src/plugins/platforms/xcb/qxcbnativeinterface.h index 354ef76799..8221d9a36b 100644 --- a/src/plugins/platforms/xcb/qxcbnativeinterface.h +++ b/src/plugins/platforms/xcb/qxcbnativeinterface.h @@ -71,6 +71,8 @@ public: void *nativeResourceForContext(const QByteArray &resourceString, QOpenGLContext *context); void *nativeResourceForWindow(const QByteArray &resourceString, QWindow *window); + NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource); + inline const QByteArray &genericEventFilterType() const { return m_genericEventFilterType; } EventFilter setEventFilter(const QByteArray &eventType, EventFilter filter); EventFilter eventFilter(EventFilterType type) const { return m_eventFilters[type]; } @@ -80,8 +82,7 @@ public: void *connectionForWindow(QWindow *window); void *screenForWindow(QWindow *window); void *graphicsDeviceForWindow(QWindow *window); - - void *eglContextForContext(QOpenGLContext *context); + static void *eglContextForContext(QOpenGLContext *context); private: const QByteArray m_genericEventFilterType; |