diff options
Diffstat (limited to 'vcl/qt5/QtAccessibleRegistry.cxx')
-rw-r--r-- | vcl/qt5/QtAccessibleRegistry.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/qt5/QtAccessibleRegistry.cxx b/vcl/qt5/QtAccessibleRegistry.cxx index e64f8ae03868..88f9abcfd17e 100644 --- a/vcl/qt5/QtAccessibleRegistry.cxx +++ b/vcl/qt5/QtAccessibleRegistry.cxx @@ -10,6 +10,8 @@ #include <QtAccessibleRegistry.hxx> #include <QtXAccessible.hxx> +#include <cassert> + std::map<XAccessible*, QObject*> QtAccessibleRegistry::m_aMapping = {}; QObject* QtAccessibleRegistry::getQObject(css::uno::Reference<XAccessible> xAcc) @@ -28,6 +30,12 @@ QObject* QtAccessibleRegistry::getQObject(css::uno::Reference<XAccessible> xAcc) return pQtAcc; } +void QtAccessibleRegistry::insert(css::uno::Reference<XAccessible> xAcc, QObject* pQObject) +{ + assert(pQObject); + m_aMapping.emplace(xAcc.get(), pQObject); +} + void QtAccessibleRegistry::remove(css::uno::Reference<XAccessible> xAcc) { assert(xAcc.is()); |