Add logging for QAccessibleCache
Change-Id: I2cbaf6c6dfb80b2b5c2732f1633da411fd816710 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
parent
4fa12d8553
commit
23e20e4030
@ -38,11 +38,15 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "qaccessiblecache_p.h"
|
||||
#include <QtCore/qdebug.h>
|
||||
#include <QtCore/qloggingcategory.h>
|
||||
|
||||
#ifndef QT_NO_ACCESSIBILITY
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
Q_LOGGING_CATEGORY(lcAccessibilityCache, "qt.accessibility.cache");
|
||||
|
||||
/*!
|
||||
\class QAccessibleCache
|
||||
\internal
|
||||
@ -122,6 +126,7 @@ QAccessible::Id QAccessibleCache::insert(QObject *object, QAccessibleInterface *
|
||||
}
|
||||
idToInterface.insert(id, iface);
|
||||
interfaceToId.insert(iface, id);
|
||||
qCDebug(lcAccessibilityCache) << "insert - id:" << id << " iface:" << iface;
|
||||
return id;
|
||||
}
|
||||
|
||||
@ -137,6 +142,7 @@ void QAccessibleCache::objectDestroyed(QObject* obj)
|
||||
void QAccessibleCache::deleteInterface(QAccessible::Id id, QObject *obj)
|
||||
{
|
||||
QAccessibleInterface *iface = idToInterface.take(id);
|
||||
qCDebug(lcAccessibilityCache) << "delete - id:" << id << " iface:" << iface;
|
||||
if (!iface) // the interface may be deleted already
|
||||
return;
|
||||
interfaceToId.take(iface);
|
||||
|
Loading…
x
Reference in New Issue
Block a user