diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2018-10-31 21:15:31 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2018-11-04 02:37:28 +0200 |
commit | 2464925e7be832d4926b6204169bbbc1646c6368 (patch) | |
tree | 5c31a922f2eddbe60de8622cd012c85eb15868d3 /src/qt/bitcoingui.h | |
parent | 53bb6be3f8a50ee9e5c4d7e9155236152e7c4b7c (diff) |
Use Qt signal for macOS Dock icon click event
This moves the Dock icon click reaction code to the common place and
allows some cleanup in obj_c code.
According to the Apple's docs `class_replaceMethod` behaves as
`class_addMethod`, if the method identified by name does not yet exist;
or as `method_setImplementation`, if it does exist.
Diffstat (limited to 'src/qt/bitcoingui.h')
-rw-r--r-- | src/qt/bitcoingui.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h index dcaca10557..be33b4679f 100644 --- a/src/qt/bitcoingui.h +++ b/src/qt/bitcoingui.h @@ -260,6 +260,9 @@ public Q_SLOTS: #ifndef Q_OS_MAC /** Handle tray icon clicked */ void trayIconActivated(QSystemTrayIcon::ActivationReason reason); +#else + /** Handle macOS Dock icon clicked */ + void macosDockIconActivated(); #endif /** Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true */ |