30
26
void MockWizardPlugin::registerTypes(const char *uri)
32
28
Q_ASSERT(uri == QLatin1String("Wizard"));
33
29
qmlRegisterType<PageList>(uri, 0, 1, "PageList");
34
qmlRegisterSingletonType<MockSystem>(uri, 0, 1, "System", system_provider);
30
qmlRegisterSingletonType<MockSystem>(uri, 0, 1, "System", [](QQmlEngine*, QJSEngine*) -> QObject* { return new MockSystem; });
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");