Adds lint fixes
This commit is contained in:
parent
d50589143f
commit
373aae7452
@ -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();
|
||||
}
|
||||
@ -1,26 +1,26 @@
|
||||
|
||||
#include "Extras/Utils/integration.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QFont>
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace qodeIntegration
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user