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:
parent
da28d17eaf
commit
eab6de2eec
@ -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)
|
||||
{
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user