Marked all exiting widgets
This commit is contained in:
parent
803833808d
commit
09f4d17dfa
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,6 +22,7 @@ export class QRadioButton extends NodeWidget {
|
||||
this.setText.bind(this);
|
||||
}
|
||||
setText(text: string | number) {
|
||||
// react:✓ TODO://getter
|
||||
this.native.setText(`${text}`);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user