diff --git a/src/lib/QtWidgets/QCheckBox/index.ts b/src/lib/QtWidgets/QCheckBox/index.ts index 8bde29167..7d739c06d 100644 --- a/src/lib/QtWidgets/QCheckBox/index.ts +++ b/src/lib/QtWidgets/QCheckBox/index.ts @@ -20,17 +20,19 @@ export class QCheckBox extends NodeWidget { this.parent = parent; // bind member functions this.setText.bind(this); - this.isChecked.bind(this); this.setChecked.bind(this); + this.isChecked.bind(this); } - setText(text: string) { + // react:✓ //TODO:getter this.native.setText(text); } - isChecked(): boolean { - return this.native.isChecked(); - } setChecked(check: boolean) { + // react:✓ return this.native.setChecked(check); } + isChecked(): boolean { + // react:✓ + return this.native.isChecked(); + } } diff --git a/src/lib/QtWidgets/QLabel/index.ts b/src/lib/QtWidgets/QLabel/index.ts index d67ecd642..14a518ded 100644 --- a/src/lib/QtWidgets/QLabel/index.ts +++ b/src/lib/QtWidgets/QLabel/index.ts @@ -26,13 +26,16 @@ export class QLabel extends NodeWidget { this.setText.bind(this); } setWordWrap(on: boolean) { + // react:✓ TODO://getter this.native.setWordWrap(on); } setText(text: string | number) { + // react:✓ TODO://getter this.text = text; this.native.setText(`${text}`); } setPixmap(pixMap: QPixmap) { + // react:✓ TODO://getter this.native.setPixmap(pixMap.native); this.pixmap = pixMap; } diff --git a/src/lib/QtWidgets/QLineEdit/index.ts b/src/lib/QtWidgets/QLineEdit/index.ts index f66442365..52e67fa1b 100644 --- a/src/lib/QtWidgets/QLineEdit/index.ts +++ b/src/lib/QtWidgets/QLineEdit/index.ts @@ -34,19 +34,24 @@ export class QLineEdit extends NodeWidget { this.clear.bind(this); } setText(text: string) { + // react:✓ text && this.native.setText(text); } text(): string { + // react:✓ return this.native.text(); } setPlaceholderText(text: string) { + // react:✓ TODO://getter this.placeholderText = text; this.native.setPlaceholderText(text); } setReadOnly(isReadOnly: boolean) { + // react:✓ TODO://getter this.native.setReadOnly(isReadOnly); } clear() { + // react:✓ this.native.clear(); } } diff --git a/src/lib/QtWidgets/QPlainTextEdit/index.ts b/src/lib/QtWidgets/QPlainTextEdit/index.ts index c89d4d43a..b87994b01 100644 --- a/src/lib/QtWidgets/QPlainTextEdit/index.ts +++ b/src/lib/QtWidgets/QPlainTextEdit/index.ts @@ -28,15 +28,19 @@ export class QPlainTextEdit extends QAbstractScrollArea { this.clear.bind(this); } setPlainText(text: string | number) { + // react:✓ this.native.setPlainText(`${text}`); } toPlainText() { + // react:✓ return this.native.toPlainText(); } setReadOnly(isReadOnly: boolean) { + // react:✓ this.native.setReadOnly(isReadOnly); } clear() { + // react:✓ this.native.clear(); } } diff --git a/src/lib/QtWidgets/QProgressBar/index.ts b/src/lib/QtWidgets/QProgressBar/index.ts index 4aec8eb3d..1cc5081de 100644 --- a/src/lib/QtWidgets/QProgressBar/index.ts +++ b/src/lib/QtWidgets/QProgressBar/index.ts @@ -27,18 +27,23 @@ export class QProgressBar extends NodeWidget { this.value.bind(this); } setValue(value: number) { + // react:✓ this.native.setValue(value); } + value(): number { + // react:✓ + return this.native.value(); + } setMinimum(min: number) { + // react:✓ TODO://getter this.native.setMinimum(min); } setMaximum(max: number) { + // react:✓ TODO://getter this.native.setMaximum(max); } setOrientation(orientation: Orientation) { + // react:✓ TODO://getter this.native.setOrientation(orientation); } - value(): number { - return this.native.value(); - } } diff --git a/src/lib/QtWidgets/QRadioButton/index.ts b/src/lib/QtWidgets/QRadioButton/index.ts index f735c0578..af1410657 100644 --- a/src/lib/QtWidgets/QRadioButton/index.ts +++ b/src/lib/QtWidgets/QRadioButton/index.ts @@ -22,6 +22,7 @@ export class QRadioButton extends NodeWidget { this.setText.bind(this); } setText(text: string | number) { + // react:✓ TODO://getter this.native.setText(`${text}`); } }