HomePhabricator

qt: Add GUIUtil::bringToFront

Description

qt: Add GUIUtil::bringToFront

Summary:

The sequence show -> raise -> activateWindow is factored out to the new
function GUIUtil::bringToFront where a macOS fix is added in order to
fix #13829.

Partial backport of core PR14123 (commit 5796671)
https://github.com/bitcoin/bitcoin/pull/14123/commits/5796671e1dd8a2d0b1e750c2dce19a10af624095

Depends on D4481.

Test Plan:
Build and run bitcoin-qt on OSX and Linux.
Check the dock icon is working as expected.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4482

Details

Provenance
João Barbosa <joao.paulo.barbosa@gmail.com>Authored on Aug 31 2018, 22:08
FabienCommitted on Nov 20 2019, 16:35
FabienPushed on Nov 20 2019, 16:54
Reviewer
Restricted Project
Differential Revision
D4482: qt: Add GUIUtil::bringToFront
Parents
rSTAGING129d118f1245: Remove obj_c for macOS Dock icon menu
Branches
Unknown
Tags
Unknown