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>
This commit is contained in:
Friedemann Kleint 2012-11-19 13:36:30 +01:00 committed by The Qt Project
parent df3631045c
commit e8c677a930
2 changed files with 10 additions and 0 deletions

View 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);

View 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);