src/gui/accessible/qaccessible.cpp
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   387 /*!
   387 /*!
   388     \fn void QAccessible::cleanup()
   388     \fn void QAccessible::cleanup()
   389     \internal
   389     \internal
   390 */
   390 */
   391 
   391 
   392 #if !defined(QT_NO_LIBRARY) && (!defined(QT_NO_SETTINGS) || !defined(Q_OS_WIN))
   392 #ifndef QT_NO_LIBRARY
   393 Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
   393 Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
   394     (QAccessibleFactoryInterface_iid, QLatin1String("/accessible")))
   394     (QAccessibleFactoryInterface_iid, QLatin1String("/accessible")))
   395 #endif
   395 #endif
   396 
   396 
   397 Q_GLOBAL_STATIC(QList<QAccessible::InterfaceFactory>, qAccessibleFactories)
   397 Q_GLOBAL_STATIC(QList<QAccessible::InterfaceFactory>, qAccessibleFactories)
   530             InterfaceFactory factory = qAccessibleFactories()->at(i - 1);
   530             InterfaceFactory factory = qAccessibleFactories()->at(i - 1);
   531             iface = factory(cn, object);
   531             iface = factory(cn, object);
   532             if (iface)
   532             if (iface)
   533                 return iface;
   533                 return iface;
   534         }
   534         }
   535 #if !defined(QT_NO_LIBRARY) && (!defined(QT_NO_SETTINGS) || !defined(Q_OS_WIN))
   535 #ifndef QT_NO_LIBRARY
   536         QAccessibleFactoryInterface *factory = qobject_cast<QAccessibleFactoryInterface*>(loader()->instance(cn));
   536         QAccessibleFactoryInterface *factory = qobject_cast<QAccessibleFactoryInterface*>(loader()->instance(cn));
   537         if (factory) {
   537         if (factory) {
   538             iface = factory->create(cn, object);
   538             iface = factory->create(cn, object);
   539             if (iface)
   539             if (iface)
   540                 return iface;
   540                 return iface;