* Add QScrollBar and other improvements * Add Windows plugin export * Fixes QDateEdit and QTimeEdit. Co-authored-by: Atul R <atulanand94@gmail.com>
26 lines
661 B
C++
26 lines
661 B
C++
#pragma once
|
|
|
|
#include <napi.h>
|
|
|
|
#include <QPointer>
|
|
|
|
#include "Extras/Utils/nutils.h"
|
|
#include "QtWidgets/QAbstractSpinBox/qabstractspinbox_macro.h"
|
|
#include "nspinbox.hpp"
|
|
|
|
class DLL_EXPORT QSpinBoxWrap : public Napi::ObjectWrap<QSpinBoxWrap> {
|
|
QABSTRACTSPINBOX_WRAPPED_METHODS_DECLARATION
|
|
private:
|
|
QPointer<NSpinBox> instance;
|
|
|
|
public:
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QSpinBoxWrap(const Napi::CallbackInfo &info);
|
|
~QSpinBoxWrap();
|
|
NSpinBox *getInternalInstance();
|
|
// class constructor
|
|
static Napi::FunctionReference constructor;
|
|
// wrapped methods
|
|
Napi::Value setRange(const Napi::CallbackInfo &info);
|
|
};
|