Add styleHint function override for QEglFSIntegration

Without this change, while using EglFS, showIsFullscreen returns false,
which is not true, because EglFS always runs in fullscreen.
This change requires setting QT_QPA_PLATFORM_PLUGIN_PATH
environmental variable.

Task-number: QTBUG-115777
Change-Id: Ie7cf709e002ac70d95fe5e2698d2ee7b52e08094
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
(cherry picked from commit b09a70ce614faa8b0beaa86af2acb9b10a25aac8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tomasz Kozłowski 2023-12-14 11:59:07 +01:00 committed by Qt Cherry-pick Bot
parent da28d17eaf
commit eab6de2eec
2 changed files with 10 additions and 0 deletions

View File

@ -387,6 +387,14 @@ QFunctionPointer QEglFSIntegration::platformFunction(const QByteArray &function)
return qt_egl_device_integration()->platformFunction(function);
}
QVariant QEglFSIntegration::styleHint(QPlatformIntegration::StyleHint hint) const
{
if (hint == QPlatformIntegration::ShowIsFullScreen)
return true;
return QPlatformIntegration::styleHint(hint);
}
#if QT_CONFIG(evdev)
void QEglFSIntegration::loadKeymap(const QString &filename)
{

View File

@ -76,6 +76,8 @@ public:
QFunctionPointer platformFunction(const QByteArray &function) const override;
QVariant styleHint(QPlatformIntegration::StyleHint hint) const override;
QFbVtHandler *vtHandler() { return m_vtHandler.data(); }
QPointer<QWindow> pointerWindow() { return m_pointerWindow; }