From d29d4c2afac15604b0e6978e075f1ec8a67c2d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lind?= Date: Wed, 14 Mar 2012 13:05:33 +0100 Subject: [PATCH] Add a way to query for global handles in QPlatformNativeInterface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4f29f40a3d6d4237f7da092bb34b8e596321b47d Reviewed-by: Samuel Rødal --- src/gui/kernel/qplatformnativeinterface_qpa.cpp | 5 +++++ src/gui/kernel/qplatformnativeinterface_qpa.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/gui/kernel/qplatformnativeinterface_qpa.cpp b/src/gui/kernel/qplatformnativeinterface_qpa.cpp index f87a2956a3..48e43f5226 100644 --- a/src/gui/kernel/qplatformnativeinterface_qpa.cpp +++ b/src/gui/kernel/qplatformnativeinterface_qpa.cpp @@ -43,6 +43,11 @@ QT_BEGIN_NAMESPACE +void *QPlatformNativeInterface::nativeResourceForIntegration(const QByteArray &resource) +{ + Q_UNUSED(resource); + return 0; +} void *QPlatformNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window) { Q_UNUSED(resource); diff --git a/src/gui/kernel/qplatformnativeinterface_qpa.h b/src/gui/kernel/qplatformnativeinterface_qpa.h index b25ebf0fe9..dd1ef22354 100644 --- a/src/gui/kernel/qplatformnativeinterface_qpa.h +++ b/src/gui/kernel/qplatformnativeinterface_qpa.h @@ -60,6 +60,7 @@ class Q_GUI_EXPORT QPlatformNativeInterface : public QObject { Q_OBJECT public: + virtual void *nativeResourceForIntegration(const QByteArray &resource); virtual void *nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context); virtual void *nativeResourceForWindow(const QByteArray &resource, QWindow *window); virtual void *nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *backingStore);