Fixes constructor types (#634)
This commit is contained in:
parent
92b7a9b798
commit
9946dfa568
@ -1,9 +1,9 @@
|
||||
import addon from '../../utils/addon';
|
||||
import { NativeElement } from '../../core/Component';
|
||||
import { NativeElement, NativeRawPointer } from '../../core/Component';
|
||||
|
||||
export class QDragLeaveEvent {
|
||||
native: NativeElement;
|
||||
constructor(event: NativeElement) {
|
||||
constructor(event: NativeRawPointer<'QEvent'>) {
|
||||
this.native = new addon.QDragLeaveEvent(event);
|
||||
}
|
||||
//Methods from QEvent ---------------------------
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import addon from '../../utils/addon';
|
||||
import { NativeElement } from '../../core/Component';
|
||||
import { NativeElement, NativeRawPointer } from '../../core/Component';
|
||||
import { DropAction } from '../../QtEnums';
|
||||
import { QMimeData } from '../../QtCore/QMimeData';
|
||||
|
||||
export class QDragMoveEvent {
|
||||
native: NativeElement;
|
||||
constructor(event: NativeElement) {
|
||||
constructor(event: NativeRawPointer<'QEvent'>) {
|
||||
this.native = new addon.QDragMoveEvent(event);
|
||||
}
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import addon from '../../utils/addon';
|
||||
import { NativeElement } from '../../core/Component';
|
||||
import { NativeElement, NativeRawPointer } from '../../core/Component';
|
||||
import { DropAction } from '../../QtEnums';
|
||||
import { QMimeData } from '../../QtCore/QMimeData';
|
||||
|
||||
export class QDropEvent {
|
||||
native: NativeElement;
|
||||
constructor(event: NativeElement) {
|
||||
constructor(event: NativeRawPointer<'QEvent'>) {
|
||||
this.native = new addon.QDropEvent(event);
|
||||
}
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import addon from '../../utils/addon';
|
||||
import { NativeElement } from '../../core/Component';
|
||||
import { NativeElement, NativeRawPointer } from '../../core/Component';
|
||||
|
||||
export class QMouseEvent {
|
||||
native: NativeElement;
|
||||
constructor(event: NativeElement) {
|
||||
constructor(event: NativeRawPointer<'QEvent'>) {
|
||||
this.native = new addon.QMouseEvent(event);
|
||||
}
|
||||
button(): number {
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import addon from '../../utils/addon';
|
||||
import { NativeElement } from '../../core/Component';
|
||||
import { NativeElement, NativeRawPointer } from '../../core/Component';
|
||||
import { NativeGestureType } from '../../QtEnums';
|
||||
|
||||
export class QNativeGestureEvent {
|
||||
native: NativeElement;
|
||||
constructor(event: NativeElement) {
|
||||
constructor(event: NativeRawPointer<'QEvent'>) {
|
||||
this.native = new addon.QNativeGestureEvent(event);
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import addon from '../../utils/addon';
|
||||
import { NativeElement } from '../../core/Component';
|
||||
import { NativeElement, NativeRawPointer } from '../../core/Component';
|
||||
|
||||
enum PointerType {
|
||||
/** An unknown device */
|
||||
@ -34,7 +34,7 @@ export class QTabletEvent {
|
||||
readonly PointerType = PointerType;
|
||||
readonly TabletDevice = TabletDevice;
|
||||
native: NativeElement;
|
||||
constructor(event: NativeElement) {
|
||||
constructor(event: NativeRawPointer<'QEvent'>) {
|
||||
this.native = new addon.QTabletEvent(event);
|
||||
}
|
||||
/**
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import addon from '../../utils/addon';
|
||||
import { NativeElement } from '../../core/Component';
|
||||
import { NativeElement, NativeRawPointer } from '../../core/Component';
|
||||
import { ScrollPhase } from '../../QtEnums';
|
||||
|
||||
export class QWheelEvent {
|
||||
native: NativeElement;
|
||||
constructor(event: NativeElement) {
|
||||
constructor(event: NativeRawPointer<'QEvent'>) {
|
||||
this.native = new addon.QWheelEvent(event);
|
||||
}
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user