qt5base-lts/tests/manual/cocoa/menurama
Gabriel de Dietrich f27d1ccbb2 QCocoaMenu: De-pessimize the number of calls to validateMenuItem:
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>
2017-08-15 01:21:37 +00:00
..
main.cpp tests: Unify license to GPL-EXCEPT 2017-04-03 07:18:46 +00:00
mainwindow.cpp QCocoaMenu: De-pessimize the number of calls to validateMenuItem: 2017-08-15 01:21:37 +00:00
mainwindow.h tests: Unify license to GPL-EXCEPT 2017-04-03 07:18:46 +00:00
mainwindow.ui QCocoaMenu: De-pessimize the number of calls to validateMenuItem: 2017-08-15 01:21:37 +00:00
menurama.pro Cocoa Menus: Introducing Menurama manual test 2016-08-19 03:04:28 +00:00
menuramaapplication.cpp tests: Unify license to GPL-EXCEPT 2017-04-03 07:18:46 +00:00
menuramaapplication.h tests: Unify license to GPL-EXCEPT 2017-04-03 07:18:46 +00:00