feat: add DockClicker event filter
Add an event filter to `qApp` that can detect a dock icon click (in macos) when the main window is hidden or closed. When the event has been triggered, the main window will be shown again. Co-authored-by: Boris Melnik <82511785+borismelnik@users.noreply.github.com>
This commit is contained in:
parent
46caa67d49
commit
29ac475385
|
@ -82,6 +82,7 @@ proc mainProc() =
|
|||
let engine = newQQmlApplicationEngine()
|
||||
engine.addImportPath("qrc:/./StatusQ/src")
|
||||
engine.setNetworkAccessManagerFactory(networkAccessFactory)
|
||||
app.installEventFilter(engine)
|
||||
|
||||
let netAccMgr = newQNetworkAccessManager(engine.getNetworkAccessManager())
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 25e70373f8558a20132cd3a344c2c2ab5ea041a3
|
||||
Subproject commit 4e3964099892410a986ffe5be2304fcad32d1060
|
|
@ -1 +1 @@
|
|||
Subproject commit 6776fed33f64e3c2464cef4b9af0f7a868e89257
|
||||
Subproject commit 65fa68c244fa52037de652520755430ec65c77df
|
Loading…
Reference in New Issue