mirror of https://github.com/status-im/nimqml.git
fix: drop showAppEvent (#53)
This commit is contained in:
parent
ab78548aa3
commit
3f61ec4add
|
@ -347,7 +347,6 @@ proc dos_singleinstance_isfirst(vptr: DosQObject): bool {.cdecl, dynlib: dynLibN
|
||||||
proc dos_singleinstance_delete(vptr: DosQObject) {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_singleinstance_delete(vptr: DosQObject) {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
||||||
# DosStatusEvent
|
# DosStatusEvent
|
||||||
proc dos_event_create_showAppEvent(engine: DosQQmlApplicationEngine): DosStatusEvent {.cdecl, dynlib: dynLibName, importc.}
|
|
||||||
proc dos_event_create_osThemeEvent(engine: DosQQmlApplicationEngine): DosStatusEvent {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_event_create_osThemeEvent(engine: DosQQmlApplicationEngine): DosStatusEvent {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_event_create_urlSchemeEvent(): DosStatusEvent {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_event_create_urlSchemeEvent(): DosStatusEvent {.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_event_delete(vptr: DosStatusEvent) {.cdecl, dynlib: dynLibName, importc.}
|
proc dos_event_delete(vptr: DosStatusEvent) {.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
proc setupDockShowAppEventObject*(self: StatusEvent, engine: QQmlApplicationEngine) =
|
|
||||||
self.vptr = dos_event_create_showAppEvent(engine.vptr)
|
|
||||||
|
|
||||||
proc setupOSThemeEventObject*(self: StatusEvent, engine: QQmlApplicationEngine) =
|
proc setupOSThemeEventObject*(self: StatusEvent, engine: QQmlApplicationEngine) =
|
||||||
self.vptr = dos_event_create_osThemeEvent(engine.vptr)
|
self.vptr = dos_event_create_osThemeEvent(engine.vptr)
|
||||||
|
|
||||||
|
@ -11,10 +8,6 @@ proc delete*(self: StatusEvent) =
|
||||||
dos_event_delete(self.vptr)
|
dos_event_delete(self.vptr)
|
||||||
self.vptr.resetToNil
|
self.vptr.resetToNil
|
||||||
|
|
||||||
proc newStatusDockShowAppEventObject*(engine: QQmlApplicationEngine): StatusEvent =
|
|
||||||
new(result, delete)
|
|
||||||
result.setupDockShowAppEventObject(engine)
|
|
||||||
|
|
||||||
proc newStatusOSThemeEventObject*(engine: QQmlApplicationEngine): StatusEvent =
|
proc newStatusOSThemeEventObject*(engine: QQmlApplicationEngine): StatusEvent =
|
||||||
new(result, delete)
|
new(result, delete)
|
||||||
result.setupOSThemeEventObject(engine)
|
result.setupOSThemeEventObject(engine)
|
||||||
|
|
Loading…
Reference in New Issue