We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d56bd88 commit 896c9c2Copy full SHA for 896c9c2
gel.cpp
@@ -8,15 +8,18 @@
8
9
namespace com { namespace cutehacks { namespace gel {
10
11
+static const char* GEL_URI = "com.cutehacks.gel";
12
+
13
void registerEngine(QQmlEngine *)
14
{
15
// deprecated and done autmatically below
16
}
17
18
static void registerTypes()
19
- qmlRegisterType<JsonListModel>("com.cutehacks.gel", 1, 0, "JsonListModel");
- qmlRegisterType<Collection>("com.cutehacks.gel", 1, 0, "Collection");
20
+ qmlRegisterType<JsonListModel>(GEL_URI, 1, 0, "JsonListModel");
21
+ qmlRegisterType<Collection>(GEL_URI, 1, 0, "Collection");
22
+ qmlProtectModule(GEL_URI, 1);
23
24
25
Q_COREAPP_STARTUP_FUNCTION(registerTypes)
0 commit comments