(widget: RNColorDialog, newProps: ColorDialogProps, oldProps: ColorDialogProps)
| 12 | } |
| 13 | |
| 14 | function setColorDialogProps(widget: RNColorDialog, newProps: ColorDialogProps, oldProps: ColorDialogProps) { |
| 15 | const setter: ColorDialogProps = { |
| 16 | set currentColor(currentColor: QColor) { |
| 17 | widget.setCurrentColor(currentColor); |
| 18 | }, |
| 19 | set option({ option, on }: DialogOption<ColorDialogOption>) { |
| 20 | widget.setOption(option, on); |
| 21 | }, |
| 22 | set options(options: ColorDialogOption) { |
| 23 | widget.setOptions(options); |
| 24 | }, |
| 25 | }; |
| 26 | Object.assign(setter, newProps); |
| 27 | setDialogProps(widget, newProps, oldProps); |
| 28 | } |
| 29 | |
| 30 | export class RNColorDialog extends QColorDialog implements RNWidget { |
| 31 | setProps(newProps: ColorDialogProps, oldProps: ColorDialogProps): void { |
no test coverage detected