iOS: Add QIOSIntegration::hasCapability function

Add the missing override, and report that we support
OpenGL (and multiple windows).

Change-Id: If95138cab9099b547d12d3dfed008bd63b6d2acf
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
Richard Moe Gustavsen 2013-02-21 14:41:12 +01:00 committed by Tor Arne Vestbø
parent aa5528b050
commit 76e4b6d2f2
2 changed files with 14 additions and 0 deletions

View File

@ -54,6 +54,8 @@ public:
QIOSIntegration();
~QIOSIntegration();
bool hasCapability(Capability cap) const;
QPlatformWindow *createPlatformWindow(QWindow *window) const;
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;

View File

@ -84,6 +84,18 @@ QIOSIntegration::~QIOSIntegration()
delete m_touchDevice;
}
bool QIOSIntegration::hasCapability(Capability cap) const
{
switch (cap) {
case OpenGL:
return true;
case MultipleWindows:
return true;
default:
return QPlatformIntegration::hasCapability(cap);
}
}
QPlatformWindow *QIOSIntegration::createPlatformWindow(QWindow *window) const
{
qDebug() << __FUNCTION__ << "Creating platform window";