fix: drop showAppEvent (#53)

This commit is contained in:
Igor Sirotin 2023-08-02 11:33:14 +03:00 committed by GitHub
parent ab78548aa3
commit 3f61ec4add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -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.}

View File

@ -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)