4#ifndef QFACTORYCACHEREGISTRATION_P_H
5#define QFACTORYCACHEREGISTRATION_P_H
18#include <QtCore/qglobal.h>
20#if !defined(QT_BOOTSTRAPPED) && QT_CONFIG(cpp_winrt)
21# define QT_USE_FACTORY_CACHE_REGISTRATION
24#ifdef QT_USE_FACTORY_CACHE_REGISTRATION
32class QWinRTFactoryCacheRegistration
35 Q_CORE_EXPORT
explicit QWinRTFactoryCacheRegistration(QFunctionPointer clearFunction);
36 Q_CORE_EXPORT ~QWinRTFactoryCacheRegistration();
37 Q_CORE_EXPORT
static void clearAllCaches();
39 Q_DISABLE_COPY_MOVE(QWinRTFactoryCacheRegistration)
41 QWinRTFactoryCacheRegistration **m_prevNext =
nullptr;
42 QWinRTFactoryCacheRegistration *m_next =
nullptr;
43 QFunctionPointer m_clearFunction;
46inline QWinRTFactoryCacheRegistration reg([]()
noexcept { winrt::clear_factory_cache(); });
Combined button and popup list for selecting options.