Calling -[NSMenu update] every time we add a new item can result in a quadratic behavior since the function itself will iterate over all the items in the menu. We solve this by using a 0-timer which will trigger the call to update the next time the event loop spins. Menurama manual test updated. Change-Id: Ic155d364515cc93eb81b1c8085c8e44c93799954 Task-number: QTBUG-62396 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> |
||
|---|---|---|
| .. | ||
| appicon | ||
| menurama | ||
| menus | ||
| nativewidgets | ||
| popups | ||
| qmaccocoaviewcontainer | ||
| qsystemtrayicon | ||
| qt_on_cocoa | ||
| wheelevent | ||