Fix compile when we use QT_NO_ACCESSIBILITY
authorMontel Laurent <kdeqt@yahoo.fr>
Fri, 30 Nov 2012 17:53:15 +0000 (18:53 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 1 Dec 2012 00:49:46 +0000 (01:49 +0100)
Change-Id: I2d304fa6d91d86130eeb4a4aa07b43173d240312
Reviewed-by: David Faure <david.faure@kdab.com>
src/gui/accessible/qaccessible.cpp

index c21f2ad..f55037c 100644 (file)
@@ -422,10 +422,12 @@ QT_BEGIN_NAMESPACE
 
 
 /* accessible widgets plugin discovery stuff */
+#ifndef QT_NO_ACCESSIBILITY
 #ifndef QT_NO_LIBRARY
 Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
     (QAccessibleFactoryInterface_iid, QLatin1String("/accessible")))
 #endif
+#endif
 
 Q_GLOBAL_STATIC(QList<QAccessible::InterfaceFactory>, qAccessibleFactories)
 
@@ -586,10 +588,12 @@ QAccessibleInterface *QAccessible::queryAccessibleInterface(QObject *object)
             if (QAccessibleInterface *iface = factory(cn, object))
                 return iface;
         }
+#ifndef QT_NO_ACCESSIBILITY
 #ifndef QT_NO_LIBRARY
         if (QAccessibleInterface * iface = qLoadPlugin1<QAccessibleInterface, QAccessiblePlugin>(loader(), cn, object))
             return iface;
 #endif
+#endif
         mo = mo->superClass();
     }