Fabcoin Core  0.16.2
P2P Digital Currency
macdockiconhandler.h
Go to the documentation of this file.
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.
4 
5 #ifndef FABCOIN_QT_MACDOCKICONHANDLER_H
6 #define FABCOIN_QT_MACDOCKICONHANDLER_H
7 
8 #include <QMainWindow>
9 #include <QObject>
10 
11 QT_BEGIN_NAMESPACE
12 class QIcon;
13 class QMenu;
14 class QWidget;
15 QT_END_NAMESPACE
16 
19 class MacDockIconHandler : public QObject
20 {
21  Q_OBJECT
22 
23 public:
25 
26  QMenu *dockMenu();
27  void setIcon(const QIcon &icon);
28  void setMainWindow(QMainWindow *window);
29  static MacDockIconHandler *instance();
30  static void cleanup();
32 
33 Q_SIGNALS:
34  void dockIconClicked();
35 
36 private:
38 
39  QWidget *m_dummyWidget;
40  QMenu *m_dockMenu;
41  QMainWindow *mainWindow;
42 };
43 
44 #endif // FABCOIN_QT_MACDOCKICONHANDLER_H
QMainWindow * mainWindow
Macintosh-specific dock icon handler.
void setIcon(const QIcon &icon)
static MacDockIconHandler * instance()
void setMainWindow(QMainWindow *window)