@@ -5,13 +5,14 @@ import {
55 QVariant ,
66 SizeAdjustPolicy ,
77 InsertPolicy ,
8- QIcon
8+ QIcon ,
9+ QComboBoxSignals
910} from "@nodegui/nodegui" ;
1011import { ViewProps , setViewProps } from "../View/RNView" ;
1112import { RNWidget } from "../config" ;
1213import { throwUnsupported } from "../../utils/helpers" ;
1314
14- export interface ComboBoxProps extends ViewProps {
15+ export interface ComboBoxProps extends ViewProps < QComboBoxSignals > {
1516 items ?: ComboBoxItem [ ] ;
1617 count ?: number ;
1718 iconSize ?: QSize ;
@@ -51,7 +52,7 @@ const setComboBoxProps = (
5152 widget . setProperty ( "count" , count ) ;
5253 } ,
5354 set iconSize ( iconSize : QSize ) {
54- widget . setProperty ( "iconSize" , iconSize ) ;
55+ widget . setProperty ( "iconSize" , iconSize . native ) ;
5556 } ,
5657 set frame ( frame : boolean ) {
5758 widget . setProperty ( "frame" , frame ) ;
@@ -60,7 +61,7 @@ const setComboBoxProps = (
6061 widget . setProperty ( "currentIndex" , currentIndex ) ;
6162 } ,
6263 set currentData ( value : QVariant ) {
63- widget . setProperty ( "currentData" , value ) ;
64+ widget . setProperty ( "currentData" , value . native ) ;
6465 } ,
6566 set currentText ( text : string ) {
6667 widget . setProperty ( "currentText" , text ) ;
@@ -101,16 +102,16 @@ export class RNComboBox extends QComboBox implements RNWidget {
101102 setProps ( newProps : ComboBoxProps , oldProps : ComboBoxProps ) : void {
102103 setComboBoxProps ( this , newProps , oldProps ) ;
103104 }
104- appendInitialChild ( child : NodeWidget ) : void {
105+ appendInitialChild ( child : NodeWidget < any > ) : void {
105106 throwUnsupported ( this ) ;
106107 }
107- appendChild ( child : NodeWidget ) : void {
108+ appendChild ( child : NodeWidget < any > ) : void {
108109 throwUnsupported ( this ) ;
109110 }
110- insertBefore ( child : NodeWidget , beforeChild : NodeWidget ) : void {
111+ insertBefore ( child : NodeWidget < any > , beforeChild : NodeWidget < any > ) : void {
111112 throwUnsupported ( this ) ;
112113 }
113- removeChild ( child : NodeWidget ) : void {
114+ removeChild ( child : NodeWidget < any > ) : void {
114115 throwUnsupported ( this ) ;
115116 }
116117 static tagName = "combobox" ;
0 commit comments