Add QPlatformNativeInterface::nativeResourceForScreen().
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Mon, 19 Nov 2012 12:36:30 +0000 (13:36 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 19 Nov 2012 16:12:58 +0000 (17:12 +0100)
Task-number: QTBUG-5416
Change-Id: Ic163a5ff1c7a06869d324acb9aa7c257a0262e72
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/gui/kernel/qplatformnativeinterface.cpp
src/gui/kernel/qplatformnativeinterface.h

index 52e2d96..925b2ad 100644 (file)
@@ -59,6 +59,14 @@ void *QPlatformNativeInterface::nativeResourceForIntegration(const QByteArray &r
     Q_UNUSED(resource);
     return 0;
 }
+
+void *QPlatformNativeInterface::nativeResourceForScreen(const QByteArray &resource, QScreen *screen)
+{
+    Q_UNUSED(resource);
+    Q_UNUSED(screen);
+    return 0;
+}
+
 void *QPlatformNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window)
 {
     Q_UNUSED(resource);
index 97b3627..cbf997b 100644 (file)
@@ -61,6 +61,7 @@ QT_BEGIN_NAMESPACE
 
 
 class QOpenGLContext;
+class QScreen;
 class QWindow;
 class QPlatformWindow;
 class QBackingStore;
@@ -71,6 +72,7 @@ class Q_GUI_EXPORT QPlatformNativeInterface : public QObject
 public:
     virtual void *nativeResourceForIntegration(const QByteArray &resource);
     virtual void *nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context);
+    virtual void *nativeResourceForScreen(const QByteArray &resource, QScreen *screen);
     virtual void *nativeResourceForWindow(const QByteArray &resource, QWindow *window);
     virtual void *nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *backingStore);