20 #include "timezonemodel.h" 21 #include "LocalePlugin.h" 24 #include <QtQml/qqml.h> 26 void WizardPlugin::registerTypes(
const char *uri)
28 Q_ASSERT(uri == QLatin1String(
"Wizard"));
29 qmlRegisterType<PageList>(uri, 0, 1,
"PageList");
30 qmlRegisterSingletonType<System>(uri, 0, 1,
"System", [](QQmlEngine*, QJSEngine*) -> QObject* {
return new System; });
31 qmlRegisterSingletonType<Status>(uri, 0, 1,
"Status", [](QQmlEngine*, QJSEngine*) -> QObject* {
return new Status; });
32 qmlRegisterType<TimeZoneLocationModel>(uri, 0, 1,
"TimeZoneModel");
33 qmlRegisterType<LocalePlugin>(uri, 0, 1,
"LocalePlugin");