diff --git a/src/cpp/include/nodegui/Extras/Utils/integration.h b/src/cpp/include/nodegui/Extras/Utils/integration.h index 55ae903eb..405de9ff6 100644 --- a/src/cpp/include/nodegui/Extras/Utils/integration.h +++ b/src/cpp/include/nodegui/Extras/Utils/integration.h @@ -2,13 +2,13 @@ // From Qode headers namespace qode { - typedef bool (*QodeInjectedRunLoopFunc)(); - extern QodeInjectedRunLoopFunc qode_run_loop; - extern int qode_argc; - extern char **qode_argv; - extern void InjectQodeRunLoop(QodeInjectedRunLoopFunc runLoop); -} +typedef bool (*QodeInjectedRunLoopFunc)(); +extern QodeInjectedRunLoopFunc qode_run_loop; +extern int qode_argc; +extern char **qode_argv; +extern void InjectQodeRunLoop(QodeInjectedRunLoopFunc runLoop); +} // namespace qode namespace qodeIntegration { - void integrate(); +void integrate(); } \ No newline at end of file diff --git a/src/cpp/lib/Extras/Utils/integration.cpp b/src/cpp/lib/Extras/Utils/integration.cpp index c1b4867df..d603ed208 100644 --- a/src/cpp/lib/Extras/Utils/integration.cpp +++ b/src/cpp/lib/Extras/Utils/integration.cpp @@ -1,26 +1,26 @@ #include "Extras/Utils/integration.h" + #include #include - namespace qodeIntegration { - static QApplication* app; +static QApplication* app; - bool QtRunLoopWrapper(){ - app->exec(); - return false; - } +bool QtRunLoopWrapper() { + app->exec(); + return false; +} - void integrate() { - // Bootstrap Qt - app = new QApplication(qode::qode_argc, qode::qode_argv); - qode::InjectQodeRunLoop(&QtRunLoopWrapper); - // Other init settings - QFont f = QApplication::font(); - if (f.defaultFamily().isEmpty()) { - f.setFamily("Sans-Serif"); - QApplication::setFont(f); - } +void integrate() { + // Bootstrap Qt + app = new QApplication(qode::qode_argc, qode::qode_argv); + qode::InjectQodeRunLoop(&QtRunLoopWrapper); + // Other init settings + QFont f = QApplication::font(); + if (f.defaultFamily().isEmpty()) { + f.setFamily("Sans-Serif"); + QApplication::setFont(f); } -} \ No newline at end of file +} +} // namespace qodeIntegration \ No newline at end of file diff --git a/src/cpp/lib/Extras/Utils/nutils.cpp b/src/cpp/lib/Extras/Utils/nutils.cpp index 269a401b5..1a3aa8fd0 100644 --- a/src/cpp/lib/Extras/Utils/nutils.cpp +++ b/src/cpp/lib/Extras/Utils/nutils.cpp @@ -87,7 +87,6 @@ void* extrautils::configureQWidget(QWidget* widget, YGNodeRef node, return configureQObject(widget); } - Napi::FunctionReference NUtilsWrap::constructor; Napi::Object NUtilsWrap::init(Napi::Env env, Napi::Object exports) {