6#include <QtCore/QMutex>
10#ifdef QT_USE_FACTORY_CACHE_REGISTRATION
13static detail::QWinRTFactoryCacheRegistration *firstElement;
15detail::QWinRTFactoryCacheRegistration::QWinRTFactoryCacheRegistration(
16 QFunctionPointer clearFunction)
17 : m_clearFunction(clearFunction)
22 m_next = std::exchange(firstElement,
this);
25 m_prevNext = &firstElement;
27 m_next->m_prevNext = &m_next;
30detail::QWinRTFactoryCacheRegistration::~QWinRTFactoryCacheRegistration()
37 m_next->m_prevNext = m_prevNext;
40void detail::QWinRTFactoryCacheRegistration::clearAllCaches()
44 detail::QWinRTFactoryCacheRegistration *element;
46 for (element = firstElement; element !=
nullptr; element = element->m_next) {
47 element->m_clearFunction();
Combined button and popup list for selecting options.