Don't define qAccessiblePlugins if we cannot use them.
In case of QT_NO_LIBRARY there are no plugins after all. Change-Id: Iad891d0cf0edf9e4418a4fe4ac49cf6497ceeb79 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
This commit is contained in:
parent
ef0f7f4248
commit
7c34ea1fc7
@ -462,12 +462,12 @@ QAccessibleInterface::~QAccessibleInterface()
|
||||
#ifndef QT_NO_LIBRARY
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
|
||||
(QAccessibleFactoryInterface_iid, QLatin1String("/accessible")))
|
||||
typedef QHash<QString, QAccessiblePlugin*> QAccessiblePluginsHash;
|
||||
Q_GLOBAL_STATIC(QAccessiblePluginsHash, qAccessiblePlugins)
|
||||
#endif
|
||||
|
||||
// FIXME turn this into one global static struct
|
||||
Q_GLOBAL_STATIC(QList<QAccessible::InterfaceFactory>, qAccessibleFactories)
|
||||
typedef QHash<QString, QAccessiblePlugin*> QAccessiblePluginsHash;
|
||||
Q_GLOBAL_STATIC(QAccessiblePluginsHash, qAccessiblePlugins)
|
||||
Q_GLOBAL_STATIC(QList<QAccessible::ActivationObserver *>, qAccessibleActivationObservers)
|
||||
|
||||
QAccessible::UpdateHandler QAccessible::updateHandler = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user