on xenial help sign in
Fake Scopes Plugin: Register PreviewModelInterface

Approved by: Michał Sawicz

commit78877621edaf8426c85eab9279f53e9bfbbe97c9 authorAlbert Astals <albert.astals@canonical.com> dateWed 9 Jul 2014, 19:44 (12 years ago) parent953b0a2001cf06
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.");