1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOIN_QT_MACDOCKICONHANDLER_H
6 #define BITCOIN_QT_MACDOCKICONHANDLER_H
17 /** Macintosh-specific dock icon handler.
19 class MacDockIconHandler
: public QObject
24 ~MacDockIconHandler();
27 void setIcon(const QIcon
&icon
);
28 void setMainWindow(QMainWindow
*window
);
29 static MacDockIconHandler
*instance();
30 static void cleanup();
31 void handleDockIconClickEvent();
34 void dockIconClicked();
39 QWidget
*m_dummyWidget
;
41 QMainWindow
*mainWindow
;
44 #endif // BITCOIN_QT_MACDOCKICONHANDLER_H