iOS: Enable the ShowIsFullScreen style-hint so that show() implies fullscreen

We may need to qualify this setting for UC2, so that the user may still
create windows as sub-controls of a regular iOS user interface, but for
UC1 it makes sense.

Change-Id: I1a7019f901fabed8b5b9cbb18a929913780e6595
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
bb10
Tor Arne Vestbø 2012-12-06 16:42:56 +01:00
parent 599c7a5ab9
commit 189503933a
2 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,8 @@ public:
QPlatformFontDatabase *fontDatabase() const;
QVariant styleHint(StyleHint hint) const;
QAbstractEventDispatcher *guiThreadEventDispatcher() const;
QPlatformNativeInterface *nativeInterface() const;

View File

@ -106,6 +106,16 @@ QPlatformFontDatabase * QIOSIntegration::fontDatabase() const
return m_fontDatabase;
}
QVariant QIOSIntegration::styleHint(StyleHint hint) const
{
switch (hint) {
case ShowIsFullScreen:
return true;
default:
return QPlatformIntegration::styleHint(hint);
}
}
QPlatformNativeInterface *QIOSIntegration::nativeInterface() const
{
return const_cast<QIOSIntegration *>(this);