Raven Core  3.0.0
P2P Digital Currency
macdockiconhandler.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_QT_MACDOCKICONHANDLER_H
7 #define RAVEN_QT_MACDOCKICONHANDLER_H
8 
9 #include <QMainWindow>
10 #include <QObject>
11 
12 QT_BEGIN_NAMESPACE
13 class QIcon;
14 class QMenu;
15 class QWidget;
16 QT_END_NAMESPACE
17 
20 class MacDockIconHandler : public QObject
21 {
22  Q_OBJECT
23 
24 public:
26 
27  QMenu *dockMenu();
28  void setIcon(const QIcon &icon);
29  void setMainWindow(QMainWindow *window);
30  static MacDockIconHandler *instance();
31  static void cleanup();
33 
34 Q_SIGNALS:
35  void dockIconClicked();
36 
37 private:
39 
40  QWidget *m_dummyWidget;
41  QMenu *m_dockMenu;
42  QMainWindow *mainWindow;
43 };
44 
45 #endif // RAVEN_QT_MACDOCKICONHANDLER_H
QMainWindow * mainWindow
Macintosh-specific dock icon handler.
void setIcon(const QIcon &icon)
static MacDockIconHandler * instance()
void setMainWindow(QMainWindow *window)