| 12 | Nan::Persistent<Function> QmlEngineWrap::constructor; |
| 13 | |
| 14 | QmlEngineWrap::QmlEngineWrap() : ObjectWrap() |
| 15 | { |
| 16 | obj = new QQmlEngine(); |
| 17 | obj->setOutputWarningsToStandardError(true); |
| 18 | signal = new SignalHandler(obj); |
| 19 | #if 0 |
| 20 | QStringList importPaths; |
| 21 | importPaths << "../../node_modules/qt-darwin/Resources/qml"; |
| 22 | importPaths << "qrc:/qt-project.org/imports"; |
| 23 | importPaths << "/Users/fred/Qt/5.7/clang_64/qml"; |
| 24 | obj->setImportPathList(importPaths); |
| 25 | #endif |
| 26 | |
| 27 | obj->addImportPath("../../node_modules/qt-darwin/Resources/qml"); |
| 28 | obj->addImportPath("node_modules/qt-darwin/Resources/qml"); |
| 29 | obj->addImportPath("node_modules/brig/node_modules/qt-darwin/Resources/qml"); |
| 30 | #if 0 |
| 31 | qDebug() << "importPathList"; |
| 32 | QStringList paths = obj->importPathList(); |
| 33 | for (int i = 0; i < paths.count(); ++i) { |
| 34 | const QString &pluginDir = paths.at(i); |
| 35 | qDebug() << pluginDir; |
| 36 | } |
| 37 | #endif |
| 38 | #if 1 |
| 39 | QStringList pluginPaths; |
| 40 | pluginPaths << "."; |
| 41 | pluginPaths << "../../node_modules/qt-darwin/PlugIns"; |
| 42 | pluginPaths << "node_modules/qt-darwin/PlugIns"; |
| 43 | pluginPaths << "node_modules/brig/node_modules/qt-darwin/PlugIns"; |
| 44 | obj->setPluginPathList(pluginPaths); |
| 45 | #endif |
| 46 | |
| 47 | #if 0 |
| 48 | qDebug() << "pluginPathList"; |
| 49 | QStringList _paths = obj->pluginPathList(); |
| 50 | for (int i = 0; i < _paths.count(); ++i) { |
| 51 | const QString &pluginDir = _paths.at(i); |
| 52 | qDebug() << pluginDir; |
| 53 | } |
| 54 | #endif |
| 55 | } |
| 56 | |
| 57 | QmlEngineWrap::~QmlEngineWrap() |
| 58 | { |
nothing calls this directly
no outgoing calls
no test coverage detected