|
|
|
@ -14,12 +14,6 @@ class QMenu;
@@ -14,12 +14,6 @@ class QMenu;
|
|
|
|
|
class QWidget; |
|
|
|
|
QT_END_NAMESPACE |
|
|
|
|
|
|
|
|
|
#ifdef __OBJC__ |
|
|
|
|
@class DockIconClickEventHandler; |
|
|
|
|
#else |
|
|
|
|
class DockIconClickEventHandler; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/** Macintosh-specific dock icon handler.
|
|
|
|
|
*/ |
|
|
|
|
class MacDockIconHandler : public QObject |
|
|
|
@ -33,7 +27,7 @@ public:
@@ -33,7 +27,7 @@ public:
|
|
|
|
|
void setIcon(const QIcon &icon); |
|
|
|
|
void setMainWindow(QMainWindow *window); |
|
|
|
|
static MacDockIconHandler *instance(); |
|
|
|
|
|
|
|
|
|
static void cleanup(); |
|
|
|
|
void handleDockIconClickEvent(); |
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
@ -42,7 +36,6 @@ signals:
@@ -42,7 +36,6 @@ signals:
|
|
|
|
|
private: |
|
|
|
|
MacDockIconHandler(); |
|
|
|
|
|
|
|
|
|
DockIconClickEventHandler *m_dockIconClickEventHandler; |
|
|
|
|
QWidget *m_dummyWidget; |
|
|
|
|
QMenu *m_dockMenu; |
|
|
|
|
QMainWindow *mainWindow; |
|
|
|
|