File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
QIcon ,
8
8
FlexLayout ,
9
9
WidgetEventTypes ,
10
- NativeElement ,
11
- QWidgetSignals
10
+ QWidgetSignals ,
12
11
} from "@nodegui/nodegui" ;
12
+ import { NativeRawPointer } from "@nodegui/nodegui/dist/lib/core/Component" ;
13
13
import { RNWidget , RNProps } from "../config" ;
14
14
15
15
/**
@@ -189,7 +189,7 @@ export function setViewProps<Signals extends {}>(
189
189
const minSize = newProps . minSize || { width : 0 , height : 0 } ;
190
190
const maxSize = newProps . maxSize || {
191
191
width : 16777215 ,
192
- height : 16777215
192
+ height : 16777215 ,
193
193
} ;
194
194
widget . setMinimumSize ( minSize . width , minSize . height ) ;
195
195
widget . setMaximumSize ( maxSize . width , maxSize . height ) ;
@@ -226,7 +226,7 @@ export function setViewProps<Signals extends {}>(
226
226
Object . entries ( windowFlagsMap ) . forEach ( ( [ flag , value ] ) => {
227
227
widget . setWindowFlag ( Number ( flag ) , value ) ;
228
228
} ) ;
229
- }
229
+ } ,
230
230
} ;
231
231
Object . assign ( setter , newProps ) ;
232
232
}
@@ -302,5 +302,5 @@ type WindowFlagsMap = {
302
302
} ;
303
303
304
304
export type WidgetEventListeners = {
305
- [ key in WidgetEventTypes ] : ( native ?: NativeElement ) => void ;
305
+ [ key in WidgetEventTypes ] : ( event ?: NativeRawPointer < "QEvent" > ) => void ;
306
306
} ;
You can’t perform that action at this time.
0 commit comments