The Objective-C MacDockIconHandler
class currently does such jobs on macOS:
- Set the Dock icon
- Support the Dock icon menu
- Handle the Dock icon click event
Qt does the first job natively.
Qt has native support the Dock icon menu only since version 5.2
Qt does not handle applicationShouldHandleReopen
event. And this brakes all Qt support for the Dock icon click event.
This PR:
- removes Objective-C code for the Dock icon setting. Qt
setWindowIcon()
does this work - removes Objective-C code for the Dock icon menu. Qt
setAsDockMenu()
does this work - uses Qt signal for the Dock icon click event