summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiosfiledialog.mm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-03-09 20:41:34 +0100
committerTor Arne Vestbø <torarnv@gmail.com>2020-03-14 14:21:28 +0100
commit395e2d9bc48941d64d7ca0e7998dcacb0a0606af (patch)
tree7daa65e4782413246b6cd16b35bcff142d81a6d0 /src/plugins/platforms/ios/qiosfiledialog.mm
parent54f8be6cc0e53bcd8b2e67d302b7cbcaed9387b9 (diff)
macOS: Modernize QCocoaSystemTrayIcon
The code had not been touched in a very long time and was overgrown with weeds from pre-QPA times. We no longer maintain an indirection through QSystemTrayIconSys, which was a remnant from Qt 4 times. The Objective-C helper class used for callbacks has been slimmed down to just a simple delegate, with the actual work done in the QCocoaSystemTrayIcon implementation, further reducing indirection. We no longer use a custom NSView for the status bar item, something that has been deprecated for a long time. Instead we set properties on the NSStatusItem's button. This gives us automatic support for drawing the icon with the right highlight, including in dark mode. Finally, the code has been updated to modern Objective-C syntax. Change-Id: I59706081f6b179035b8216a7a6ebc08a47cec127 Fixes: QTBUG-77189 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/platforms/ios/qiosfiledialog.mm')
0 files changed, 0 insertions, 0 deletions