Commit dc70ab8a authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Register skeleton resource

parent 0ecb083b
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "core/trainingsession.h" #include "core/trainingsession.h"
#include "core/unit.h" #include "core/unit.h"
#include "core/resources/editablecourseresource.h" #include "core/resources/editablecourseresource.h"
#include "core/resources/skeletonresource.h"
#include "models/coursefiltermodel.h" #include "models/coursefiltermodel.h"
#include "models/coursemodel.h" #include "models/coursemodel.h"
#include "models/languagemodel.h" #include "models/languagemodel.h"
...@@ -100,6 +101,10 @@ void Application::registerQmlTypes() ...@@ -100,6 +101,10 @@ void Application::registerQmlTypes()
"artikulate", 1, 0, "artikulate", 1, 0,
"EditableCourseResource", "EditableCourseResource",
QStringLiteral("EditableCourseResource objects are backend objects")); QStringLiteral("EditableCourseResource objects are backend objects"));
qmlRegisterUncreatableType<SkeletonResource>(
"artikulate", 1, 0,
"SkeletonResource",
QStringLiteral("SkeletonResource objects are backend objects"));
// interfaces // interfaces
qmlRegisterInterface<IResourceRepository>("IResourceRepository"); qmlRegisterInterface<IResourceRepository>("IResourceRepository");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment