| 15 | Nan::Persistent<Function> QApplicationWrap::constructor; |
| 16 | |
| 17 | QApplicationWrap::QApplicationWrap() : ObjectWrap() |
| 18 | { |
| 19 | app_argc = 0; |
| 20 | app_argv = NULL; |
| 21 | #if 0 |
| 22 | QStringList libPaths; |
| 23 | libPaths << "../../node_modules/qt-darwin/PlugIns"; |
| 24 | libPaths << "../../node_modules/qt-darwin/Frameworks"; |
| 25 | libPaths << "../../node_modules/qt-darwin/Resources/qml"; |
| 26 | QCoreApplication::setLibraryPaths(libPaths); |
| 27 | #endif |
| 28 | #if 1 |
| 29 | QCoreApplication::addLibraryPath("../../node_modules/qt-darwin/Frameworks"); |
| 30 | QCoreApplication::addLibraryPath("../../node_modules/qt-darwin/PlugIns"); |
| 31 | QCoreApplication::addLibraryPath("../../node_modules/qt-darwin/Resources/qml"); |
| 32 | QCoreApplication::addLibraryPath("node_modules/qt-darwin/Frameworks"); |
| 33 | QCoreApplication::addLibraryPath("node_modules/brig/node_modules/qt-darwin/Frameworks"); |
| 34 | QCoreApplication::addLibraryPath("node_modules/qt-darwin/PlugIns"); |
| 35 | QCoreApplication::addLibraryPath("node_modules/brig/node_modules/qt-darwin/PlugIns"); |
| 36 | QCoreApplication::addLibraryPath("node_modules/qt-darwin/Resources/qml"); |
| 37 | QCoreApplication::addLibraryPath("node_modules/brig/node_modules/qt-darwin/Resources/qml"); |
| 38 | #endif |
| 39 | dispatcher = new BrigEventDispatcher; |
| 40 | QGuiApplication::setEventDispatcher(dispatcher); |
| 41 | QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); |
| 42 | QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
| 43 | |
| 44 | app = new QGuiApplication(app_argc, app_argv); |
| 45 | QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); |
| 46 | |
| 47 | #if 0 |
| 48 | qDebug() << QCoreApplication::applicationDirPath(); |
| 49 | QStringList paths = QCoreApplication::libraryPaths(); |
| 50 | for (int i = 0; i < paths.count(); ++i) { |
| 51 | const QString &pluginDir = paths.at(i); |
| 52 | qDebug() << pluginDir; |
| 53 | } |
| 54 | #endif |
| 55 | // QCoreApplication *app1 = QCoreApplication::instance(); |
| 56 | // QCoreApplication::removePostedEvents(app1, QEvent::Quit); |
| 57 | } |
| 58 | |
| 59 | QApplicationWrap::~QApplicationWrap() |
| 60 | { |
nothing calls this directly
no outgoing calls
no test coverage detected