Make File→Exit button functional

Lays groundwork for signal callbacks.
This commit is contained in:
Jaidyn Ann 2024-02-04 20:54:58 -06:00
parent b7aca5eba3
commit ce486ef5f6

View File

@ -41,7 +41,17 @@
;; Initialize the window. ;; Initialize the window.
(define (init-window window) (define (init-window window)
(window-callbacks window)
(qt:show window)) (qt:show window))
;; Connect callback functions to widgets signals.
(define (window-callbacks window)
(let ([fileexit (qt:find window "actionQuit")])
(if fileexit
(qt:connect
fileexit "triggered()"
(qt:receiver exit)))))
(init) (init)