Renamed to QKeyEvent

This commit is contained in:
Atul R
2019-06-23 17:56:46 +02:00
parent e15d6b14ac
commit 93608e2e75
7 changed files with 18 additions and 18 deletions
@@ -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
View File
@@ -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
+13
View File
@@ -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();
};
}
-13
View File
@@ -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();
};
}