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:
parent
aa5528b050
commit
76e4b6d2f2
@ -54,6 +54,8 @@ public:
|
||||
QIOSIntegration();
|
||||
~QIOSIntegration();
|
||||
|
||||
bool hasCapability(Capability cap) const;
|
||||
|
||||
QPlatformWindow *createPlatformWindow(QWindow *window) const;
|
||||
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user