summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-11-19 13:36:30 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-19 17:12:58 +0100
commite8c677a9305f9485d65135eb59ca5b63c2106287 (patch)
treef9108c25d68e0600cff7b5280b7613661b84e4fd /src/gui
parentdf3631045c35aaed0b9de4ae5e643c8019972d13 (diff)
Add QPlatformNativeInterface::nativeResourceForScreen().
Task-number: QTBUG-5416 Change-Id: Ic163a5ff1c7a06869d324acb9aa7c257a0262e72 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qplatformnativeinterface.cpp8
-rw-r--r--src/gui/kernel/qplatformnativeinterface.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformnativeinterface.cpp b/src/gui/kernel/qplatformnativeinterface.cpp
index 52e2d969b3..925b2ad3de 100644
--- a/src/gui/kernel/qplatformnativeinterface.cpp
+++ b/src/gui/kernel/qplatformnativeinterface.cpp
@@ -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);
diff --git a/src/gui/kernel/qplatformnativeinterface.h b/src/gui/kernel/qplatformnativeinterface.h
index 97b36274e8..cbf997bec4 100644
--- a/src/gui/kernel/qplatformnativeinterface.h
+++ b/src/gui/kernel/qplatformnativeinterface.h
@@ -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);