Renamed to QKeyEvent
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
#include "keyevent_wrap.h"
|
||||
#include "qkeyevent_wrap.h"
|
||||
#include "src/cpp/Extras/Utils/nutils.h"
|
||||
#include <QString>
|
||||
#include "deps/spdlog/spdlog.h"
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#include "src/cpp/QtWidgets/QRadioButton/qradiobutton_wrap.h"
|
||||
#include "src/cpp/QtWidgets/QLineEdit/qlineedit_wrap.h"
|
||||
#include "src/cpp/core/FlexLayout/flexlayout_wrap.h"
|
||||
#include "src/cpp/core/Events/types/KeyEvent/keyevent_wrap.h"
|
||||
#include "src/cpp/QtGui/QEvent/QKeyEvent/qkeyevent_wrap.h"
|
||||
#include <napi.h>
|
||||
|
||||
// These cant be instantiated in JS Side
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import addon from "../../../core/addon";
|
||||
import { NativeElement } from "../../../core/Component";
|
||||
import { NativeEvent } from "../../../core/EventWidget";
|
||||
|
||||
export class QKeyEvent {
|
||||
native: NativeElement;
|
||||
constructor(event: NativeEvent) {
|
||||
this.native = new addon.QKeyEvent(event);
|
||||
}
|
||||
text = (): string => {
|
||||
return this.native.text();
|
||||
};
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
import addon from "../../core/addon";
|
||||
import { NativeElement } from "../../core/Component";
|
||||
import { NativeEvent } from "../../core/EventWidget";
|
||||
|
||||
export class KeyEvent {
|
||||
native: NativeElement;
|
||||
constructor(event: NativeEvent) {
|
||||
this.native = new addon.QKeyEvent(event);
|
||||
}
|
||||
text = (): string => {
|
||||
return this.native.text();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user