2011-10-07 13:21:45 +02:00
|
|
|
#ifndef MACDOCKICONHANDLER_H
|
|
|
|
#define MACDOCKICONHANDLER_H
|
|
|
|
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
|
|
|
class QMenu;
|
|
|
|
class QIcon;
|
|
|
|
class QWidget;
|
|
|
|
class objc_object;
|
|
|
|
|
2011-11-13 13:19:52 +01:00
|
|
|
/** Macintosh-specific dock icon handler.
|
|
|
|
*/
|
2011-10-07 13:21:45 +02:00
|
|
|
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
|