Remove env var to enable accessibility on linux.
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>
Fri, 30 Dec 2011 11:45:52 +0000 (12:45 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Jan 2012 09:44:00 +0000 (10:44 +0100)
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>
src/gui/accessible/qplatformaccessibility_qpa.cpp

index 7df8275..722e8a5 100644 (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) {