Disable the eglfs input handlers by Environment variable

Added a Enironment variable to make it possible to disable the
automatic installation of EVDEV input handlers.

This is needed if you want to use your own generic plugin instead,
which also uses evdev

Change-Id: I17d47008c10999bf918db62a22a3b6a38d7abb80
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Dominik Holland 2013-12-09 11:29:16 +01:00 committed by The Qt Project
parent cb2549740e
commit 639b4e85ae
2 changed files with 5 additions and 1 deletions

View File

@ -87,6 +87,8 @@ QEglFSIntegration::QEglFSIntegration()
, mScreen(0)
, mInputContext(0)
{
mDisableInputHandlers = qgetenv("QT_QPA_EGLFS_DISABLE_INPUT").toInt();
initResources();
}
@ -176,7 +178,8 @@ void QEglFSIntegration::initialize()
mInputContext = QPlatformInputContextFactory::create();
createInputHandlers();
if (!mDisableInputHandlers)
createInputHandlers();
}
QEglFSScreen *QEglFSIntegration::createScreen() const

View File

@ -97,6 +97,7 @@ private:
QScopedPointer<QPlatformServices> mServices;
QEglFSScreen *mScreen;
QPlatformInputContext *mInputContext;
bool mDisableInputHandlers;
};
QT_END_NAMESPACE