-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
27beb83 qt: All tray menu actions call showNormalIfMinimized (João Barbosa) c470bbd qt: Use GUIUtil::bringToFront where possible (João Barbosa) ac73c7d qt: Add GUIUtil::bringToFront (João Barbosa) 0c2fb87 Remove obj_c for macOS Dock icon menu (Hennadii Stepanov) 9034714 Use Qt signal for macOS Dock icon click event (Hennadii Stepanov) 4d4bc37 Remove obj_c for macOS Dock icon setting (Hennadii Stepanov) d2ed162 Clean systray icon menu for -disablewallet mode (Hennadii Stepanov) 298dc15 gui: Favor macOS show / hide action in dock menu (João Barbosa) Pull request description: Backport #14123 #14133 #14383 and #14597 to 0.17 branch to fix #13606 (comment). Tree-SHA512: 543c80e7e2130870e801e0c9a69b06b9eea27c288478fc5dddeb662f7f3ec5b56b30916e5a9a629fced3fffcb8be77e2cd155e75cfd0a4392299add9730840f4
- Loading branch information
Showing
7 changed files
with
81 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,27 @@ | ||
// Copyright (c) 2011-2015 The Bitcoin Core developers | ||
// Copyright (c) 2011-2018 The Bitcoin Core developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
#ifndef BITCOIN_QT_MACDOCKICONHANDLER_H | ||
#define BITCOIN_QT_MACDOCKICONHANDLER_H | ||
|
||
#include <QMainWindow> | ||
#include <QObject> | ||
|
||
QT_BEGIN_NAMESPACE | ||
class QIcon; | ||
class QMenu; | ||
class QWidget; | ||
QT_END_NAMESPACE | ||
|
||
/** Macintosh-specific dock icon handler. | ||
/** macOS-specific Dock icon handler. | ||
*/ | ||
class MacDockIconHandler : public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
~MacDockIconHandler(); | ||
|
||
QMenu *dockMenu(); | ||
void setIcon(const QIcon &icon); | ||
void setMainWindow(QMainWindow *window); | ||
static MacDockIconHandler *instance(); | ||
static void cleanup(); | ||
void handleDockIconClickEvent(); | ||
|
||
Q_SIGNALS: | ||
void dockIconClicked(); | ||
|
||
private: | ||
MacDockIconHandler(); | ||
|
||
QWidget *m_dummyWidget; | ||
QMenu *m_dockMenu; | ||
QMainWindow *mainWindow; | ||
}; | ||
|
||
#endif // BITCOIN_QT_MACDOCKICONHANDLER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.