OSDN Git Service

Version 0.4.9(0.5beta)
[fontmanager/fontmanager.git] / main.cpp
index 91cc7c4..60d3dd6 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -64,10 +64,17 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
 
     ApplicationController appController;
 
+#if 0
+    qmlRegisterUncreatableType<FontsConfigProperties>("FontConfig", 1, 0, "FontsConfigProperties", "Error");
+    qmlRegisterUncreatableType<FontInfo>("FontConfig", 1, 0, "FontInfo", "Error");
+    qmlRegisterUncreatableType<InstalledFontInfo>("FontConfig", 1, 0, "InstalledFontInfo", "Error");
+    qmlRegisterUncreatableType<FontsConfEditorController>("FontConfig", 1, 0, "FontsConfEditorController", "Error");
+#else
     qmlRegisterType<FontsConfigProperties>();
     qmlRegisterType<FontInfo>();
     qmlRegisterType<InstalledFontInfo>();
     qmlRegisterType<FontsConfEditorController>();
+#endif
 
     QmlApplicationViewer viewer;
     viewer.rootContext()->setContextProperty("controller", &appController);