on xenial help sign in
Register PreviewModelInterface
commit001cf0665ce4836420c9ff972ea4cd8ca0ba8c40 authorAlbert Astals <albert.astals@canonical.com> dateTue 8 Jul 2014, 13:26 (12 years ago) parente9e4027
1 file changed+1
tests/mocks/Unity/fake_unity_plugin.cpp+1
tests/mocks/Unity/fake_unity_plugin.cpp+1
@@ -45,6 +45,7 @@ void FakeUnityPlugin::registerTypes(const char *uri)
4545 qmlRegisterUncreatableType<unity::shell::scopes::ScopeInterface>(uri, 0, 2, "Scope", "Can't create Scope object in QML.");
4646 qmlRegisterUncreatableType<unity::shell::scopes::DepartmentInterface>(uri, 0, 2, "Department", "Can't create Department object in QML.");
4747 qmlRegisterUncreatableType<unity::shell::scopes::CategoriesInterface>(uri, 0, 2, "Categories", "Can't create Categories object in QML.");
48+ qmlRegisterUncreatableType<unity::shell::scopes::PreviewModelInterface>(uri, 0, 2, "PreviewModel", "Can't create new PreviewModel in QML. Get them from PreviewStack instance.");
4849 qmlRegisterUncreatableType<ResultsModel>(uri, 0, 2, "ResultsModel", "Can't create ResultsModel object in QML.");
4950 qmlRegisterType<PreviewModel>(uri, 0, 2, "FakePreviewModel");
5051 qmlRegisterUncreatableType<PreviewWidgetModel>(uri, 0, 2, "PreviewWidgetModel", "Can't create new PreviewWidgetModel in QML. Get them from PreviewModel instance.");