From: Frederik Gladhorn Date: Fri, 30 Dec 2011 11:45:52 +0000 (+0100) Subject: Remove env var to enable accessibility on linux. X-Git-Tag: qt-v5.0.0-alpha1~2080 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1323eebfbf1285dc349f1730f30c91d1c7214132;p=profile%2Fivi%2Fqtbase.git Remove env var to enable accessibility on linux. Usually we don't have a plugin for this on linux anyway. But if we do, we should actually allow it to interface with the system. When using AT-SPI the plugin can detect if it should be active. Other plugins can fall back to using an env var if really needed. Change-Id: Ic9dcfa305e7cdafbf4a93bcc2dc9a0fcd9b9a7a2 Reviewed-by: Jan-Arve Sæther --- diff --git a/src/gui/accessible/qplatformaccessibility_qpa.cpp b/src/gui/accessible/qplatformaccessibility_qpa.cpp index 7df8275..722e8a5 100644 --- a/src/gui/accessible/qplatformaccessibility_qpa.cpp +++ b/src/gui/accessible/qplatformaccessibility_qpa.cpp @@ -123,10 +123,7 @@ void QPlatformAccessibility::initialize() if (isInit) return; isInit = true; // ### not atomic -#ifdef Q_OS_UNIX - if (qgetenv("QT_ACCESSIBILITY") != "1") - return; -#endif + #ifndef QT_NO_LIBRARY const QStringList l = bridgeloader()->keys(); for (int i = 0; i < l.count(); ++i) {