Takes care of most of the QMenu occurunces. A couple remain in SearchPlugin BUG: 460983 (cherry picked from commit acc47c7d)