Skip to content

Commit 871ac37

Browse files
author
theuni
committed
qt: restore icon dock menu
This was removed by 25c0cce. It was apparently removed in qt5, but may return for 5.1.
1 parent 03b6a1c commit 871ac37

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/qt/macdockiconhandler.mm

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
#undef slots
99
#include <Cocoa/Cocoa.h>
1010

11+
#if QT_VERSION < 0x050000
12+
extern void qt_mac_set_dock_menu(QMenu *);
13+
#endif
14+
1115
@interface DockIconClickEventHandler : NSObject
1216
{
1317
MacDockIconHandler* dockIconHandler;
@@ -52,7 +56,9 @@ - (void)handleDockClickEvent:(NSAppleEventDescriptor*)event withReplyEvent:(NSAp
5256
this->m_dummyWidget = new QWidget();
5357
this->m_dockMenu = new QMenu(this->m_dummyWidget);
5458
this->setMainWindow(NULL);
55-
59+
#if QT_VERSION < 0x050000
60+
qt_mac_set_dock_menu(this->m_dockMenu);
61+
#endif
5662
[pool release];
5763
}
5864

0 commit comments

Comments
 (0)