128eefa0f8
- ensure header inclusion guard is named after the header file - add missing comments at the end of some inclusion guards - add a small Qt5 compatibility fix in macdockiconhandler.h
44 lines
740 B
Objective-C
44 lines
740 B
Objective-C
#ifndef MACDOCKICONHANDLER_H
|
|
#define MACDOCKICONHANDLER_H
|
|
|
|
#include <QObject>
|
|
|
|
class QMenu;
|
|
class QIcon;
|
|
class QWidget;
|
|
|
|
#ifdef __OBJC__
|
|
@class DockIconClickEventHandler;
|
|
#else
|
|
class DockIconClickEventHandler;
|
|
#endif
|
|
|
|
/** Macintosh-specific dock icon handler.
|
|
*/
|
|
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();
|
|
|
|
DockIconClickEventHandler *m_dockIconClickEventHandler;
|
|
QWidget *m_dummyWidget;
|
|
QMenu *m_dockMenu;
|
|
};
|
|
|
|
#endif // MACDOCKICONCLICKHANDLER_H
|