on xenial help sign in
Don't register Mir as both singleton and uncreatable.
commit6f6e4999f9b32429f3bbcaff0f9abea1a2a7702d authorAndrea Azzarone <azzaronea@gmail.com> dateFri 21 Oct 2016, 10:25 (10 years ago) parent99478a8
1 file changed−2
tests/mocks/Unity/Application/plugin.cpp−2
tests/mocks/Unity/Application/plugin.cpp−2
@@ -90,8 +90,6 @@ void FakeUnityApplicationQmlPlugin::registerTypes(const char *uri)
9090 qmlRegisterSingletonType<ApplicationManager>(uri, 0, 1, "ApplicationManager", applicationManagerSingleton);
9191 qmlRegisterSingletonType<MirMock>(uri, 0, 1, "Mir", mirSingleton);
9292 qmlRegisterSingletonType<SurfaceManager>(uri, 0, 1, "SurfaceManager", surfaceManagerSingleton);
93−
94− qmlRegisterUncreatableType<Mir>(uri, 0, 1, "Mir", "Mir provides enum values, it can't be instantiated");
9593}
9694
9795void FakeUnityApplicationQmlPlugin::initializeEngine(QQmlEngine *engine, const char *uri)