Android: Fix initial window size for raster backend

We forgot to set the ShowIsFullScreen property for the raster
engine case. OpenGL windows already did the right thing, since
the GL backend is based on eglFS. The iOS backend also has
this logic.

Task-number: QTBUG-31984
Change-Id: I1cf5df32d79f441768126f00632107a7971eb5ad
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
Paul Olav Tvete 2013-06-25 14:59:58 +02:00 committed by The Qt Project
parent 7e33ec97e3
commit 8f8c29b1c8
2 changed files with 12 additions and 0 deletions

View File

@ -216,6 +216,16 @@ QPlatformServices *QAndroidPlatformIntegration::services() const
return m_androidPlatformServices; return m_androidPlatformServices;
} }
QVariant QAndroidPlatformIntegration::styleHint(StyleHint hint) const
{
switch (hint) {
case ShowIsFullScreen:
return true;
default:
return QPlatformIntegration::styleHint(hint);
}
}
static const QLatin1String androidThemeName("android"); static const QLatin1String androidThemeName("android");
QStringList QAndroidPlatformIntegration::themeNames() const QStringList QAndroidPlatformIntegration::themeNames() const
{ {

View File

@ -112,6 +112,8 @@ public:
QPlatformNativeInterface *nativeInterface() const; QPlatformNativeInterface *nativeInterface() const;
QPlatformServices *services() const; QPlatformServices *services() const;
QVariant styleHint(StyleHint hint) const;
QStringList themeNames() const; QStringList themeNames() const;
QPlatformTheme *createPlatformTheme(const QString &name) const; QPlatformTheme *createPlatformTheme(const QString &name) const;