()
| 5 | }; |
| 6 | |
| 7 | function createObjects() { |
| 8 | //create folderListModels for each folder |
| 9 | for (var index in Revive.Libraries) { |
| 10 | var finishCreation = function() { |
| 11 | if (component.status == Component.Ready) { |
| 12 | var library = component.createObject(mainWindow, { |
| 13 | library: Revive.Libraries[index], |
| 14 | libraryURL: Revive.LibrariesURL[index] |
| 15 | }); |
| 16 | if (library == null) { |
| 17 | console.log("Error creating object"); |
| 18 | } |
| 19 | } else if (component.status == Component.Error) { |
| 20 | console.log("Error loading component:", component.errorString()); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | var component = Qt.createComponent("Library.qml"); |
| 25 | if (component.status == Component.Ready) |
| 26 | finishCreation(); |
| 27 | else if (component.status == Component.Loading) |
| 28 | component.statusChanged.connect(finishCreation); |
| 29 | else if (component.status == Component.Error) |
| 30 | console.log("Error loading component:", component.errorString()); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | function generateManifest(manifest, library) { |
| 35 | console.log("Generating manifest for " + manifest["canonicalName"]); |
nothing calls this directly
no test coverage detected