summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2013-12-09 11:29:16 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-10 13:44:31 +0100
commit639b4e85ae72224133a978236331989796e7431c (patch)
treee155336825dfbe3e04643ee49b72b1fa1ca12781 /src
parentcb2549740e53e6aa04a3112febf95f99173198a0 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsintegration.cpp5
-rw-r--r--src/plugins/platforms/eglfs/qeglfsintegration.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsintegration.cpp b/src/plugins/platforms/eglfs/qeglfsintegration.cpp
index 55a822b887..d6832493f1 100644
--- a/src/plugins/platforms/eglfs/qeglfsintegration.cpp
+++ b/src/plugins/platforms/eglfs/qeglfsintegration.cpp
@@ -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
diff --git a/src/plugins/platforms/eglfs/qeglfsintegration.h b/src/plugins/platforms/eglfs/qeglfsintegration.h
index f685eec2d4..12c8158bd1 100644
--- a/src/plugins/platforms/eglfs/qeglfsintegration.h
+++ b/src/plugins/platforms/eglfs/qeglfsintegration.h
@@ -97,6 +97,7 @@ private:
QScopedPointer<QPlatformServices> mServices;
QEglFSScreen *mScreen;
QPlatformInputContext *mInputContext;
+ bool mDisableInputHandlers;
};
QT_END_NAMESPACE