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 <jan-arve.saether@nokia.com>
bb10
Frederik Gladhorn 2011-12-30 12:45:52 +01:00 committed by Qt by Nokia
parent 6a1ee9667f
commit 1323eebfbf
1 changed files with 1 additions and 4 deletions

View File

@ -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) {