Skip to content

Commit

Permalink
Fix compile when we use QT_NO_ACCESSIBILITY
Browse files Browse the repository at this point in the history
Change-Id: I2d304fa6d91d86130eeb4a4aa07b43173d240312
Reviewed-by: David Faure <[email protected]>
  • Loading branch information
Montel Laurent authored and The Qt Project committed Dec 1, 2012
1 parent 5f03e89 commit ce68ca8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/accessible/qaccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -586,9 +588,11 @@ 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();
}
Expand Down

0 comments on commit ce68ca8

Please sign in to comment.