diff options
author | Montel Laurent <kdeqt@yahoo.fr> | 2012-11-30 18:53:15 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-01 01:49:46 +0100 |
commit | ce68ca86f252f69a89a6bbcd1b125ee0aa87974c (patch) | |
tree | d2f9c79a38f11acb8b5ba1302a64d8b7e470d52f /src/gui/accessible | |
parent | 5f03e89b74e0dfcfe37dee9fd0250c2f5ec37e5f (diff) |
Fix compile when we use QT_NO_ACCESSIBILITY
Change-Id: I2d304fa6d91d86130eeb4a4aa07b43173d240312
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/gui/accessible')
-rw-r--r-- | src/gui/accessible/qaccessible.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index c21f2ad707..f55037c37a 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -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(); } |