1 #ifndef QSETTINGSWIDGETFACTORY_H 2 #define QSETTINGSWIDGETFACTORY_H 4 #include "qsettingsdialog_global.h" 5 #include "qsettingswidget.h" 19 template <
class TSettingsW
idget>
24 return new TSettingsWidget(parent);
29 #define REGISTER_TYPE_CONVERTERS(TypeA, TypeB) do {\ 30 QMetaType::registerConverter<TypeA, TypeB>([](TypeA aVal) -> TypeB {\ 33 QMetaType::registerConverter<TypeB, TypeA>([](TypeB bVal) -> TypeA {\ 39 #define REGISTER_FLAG_CONVERTERS(FlagsType) REGISTER_TYPE_CONVERTERS(FlagsType, int) 41 #endif // QSETTINGSWIDGETFACTORY_H