* Moves qt integration solely to the nodegui core addon * Adds lint fixes * moved to integration core * cleans up export snippet * revert package.json * Add exit if app->exec finishes. * lint fix * Makes QApplication custom * adds qobject to wrap of qapp * Adds working qt run looper * Adds font default * Adds qt installer * Updates qode integration to v2.0.1 * fix cpp lints * Fixes lint and deps * Adds miniqt installation * adds setup mini qt script * skips tests due to issues with jest * fix config and download path for linux and windows * Adds multiple artifact downloader * fix qt config and compilation * Fixes qode path for windows (now it can load dll's easily) * Add compilation * fix windows path setup * use scripts directly * enabled tests back * fix ubuntu deps * update to alpha release * fix workflow * adds more artifacts and funding field * change to alpha v2 * update prebuild yml * revert build action * disabling prebuild for now * switch to stable release 5.14.1 * version bump
27 lines
597 B
C++
27 lines
597 B
C++
#pragma once
|
|
|
|
#include <napi.h>
|
|
|
|
#include <QLayout>
|
|
#include <QPointer>
|
|
|
|
#include "Extras/Export/export.h"
|
|
#include "QtWidgets/QLayout/nlayout.hpp"
|
|
#include "QtWidgets/QLayout/qlayout_macro.h"
|
|
|
|
// ABSTRACT CLASS
|
|
class DLL_EXPORT QLayoutWrap : public Napi::ObjectWrap<QLayoutWrap> {
|
|
QLAYOUT_WRAPPED_METHODS_DECLARATION
|
|
private:
|
|
QPointer<NLayout> instance;
|
|
|
|
public:
|
|
static void init(Napi::Env env);
|
|
QLayoutWrap(const Napi::CallbackInfo& info);
|
|
~QLayoutWrap();
|
|
NLayout* getInternalInstance();
|
|
// class constructor
|
|
static Napi::FunctionReference constructor;
|
|
// wrapped methods
|
|
};
|