OSDN Git Service

Version 0.4.95(0.5RC)
[fontmanager/fontmanager.git] / qml / fontmanager / EditorHelper.js
index 8478f33..fe01921 100644 (file)
@@ -36,7 +36,8 @@
 **
 ****************************************************************************/
 
-var sectionIndexes;
+var sectionIndexes
+var connectionObject
 
 function init()
 {
@@ -68,3 +69,11 @@ function updateRemoveIndexes(index)
             sectionIndexes[key]--
     }
 }
+
+function setConnection(editController)
+{
+    if (connectionObject)
+        connectionObject.destroy()
+    connectionObject = modelSyncConnections.createObject(editorPage, {target: editController})
+    editController.syncFamilyList()
+}