mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
38 lines
609 B
C
38 lines
609 B
C
|
#ifndef MACDOCKICONHANDLER_H
|
||
|
#define MACDOCKICONHANDLER_H
|
||
|
|
||
|
#include <QtCore/QObject>
|
||
|
|
||
|
class QMenu;
|
||
|
class QIcon;
|
||
|
class QWidget;
|
||
|
class objc_object;
|
||
|
|
||
|
class MacDockIconHandler : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
~MacDockIconHandler();
|
||
|
|
||
|
QMenu *dockMenu();
|
||
|
void setIcon(const QIcon &icon);
|
||
|
|
||
|
static MacDockIconHandler *instance();
|
||
|
|
||
|
void handleDockIconClickEvent();
|
||
|
|
||
|
signals:
|
||
|
void dockIconClicked();
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
private:
|
||
|
MacDockIconHandler();
|
||
|
|
||
|
objc_object *m_dockIconClickEventHandler;
|
||
|
QWidget *m_dummyWidget;
|
||
|
QMenu *m_dockMenu;
|
||
|
};
|
||
|
|
||
|
#endif // MACDOCKICONCLICKHANDLER_H
|