* Added QMessageBox * Adds Qdialog * Fixes inheritance and adds pointer based event listener * Cleans up Qmessagebox so that we create all buttons * change to abstract button * fix rawData fetching from the template * formatting fixes * change to Objectwrap for better type casting * Adds Native element part in qpushbutton * Adds NapiExternal check and use ptr for initialization * Adds all button classes * fix c * fix merge conflicts * lint fix Co-authored-by: Atul R <atulanand94@gmail.com>
24 lines
577 B
C++
24 lines
577 B
C++
#pragma once
|
|
|
|
#include <napi.h>
|
|
|
|
#include <QKeySequence>
|
|
|
|
#include "core/Component/component_macro.h"
|
|
|
|
class QKeySequenceWrap : public Napi::ObjectWrap<QKeySequenceWrap> {
|
|
COMPONENT_WRAPPED_METHODS_DECLARATION
|
|
|
|
private:
|
|
std::unique_ptr<QKeySequence> instance;
|
|
|
|
public:
|
|
static Napi::FunctionReference constructor;
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QKeySequenceWrap(const Napi::CallbackInfo &info);
|
|
~QKeySequenceWrap();
|
|
QKeySequence *getInternalInstance();
|
|
// Wrapped methods
|
|
Napi::Value count(const Napi::CallbackInfo &info);
|
|
};
|