Make menu-bearing toolbar buttons show their menus with normal click rather…

Authored by ngraham on May 21 2018, 7:40 PM.

Description

Make menu-bearing toolbar buttons show their menus with normal click rather than click-and-hold

Summary:
Fixes Kate/KWrite's menu-bearing toolbar buttons so that they all show their drop-down menus immediately when clicked, instead of requiring a click-and-hold (which is the normal Qt behavior for toolbar buttons with menus).

Note: due to a Breeze design choice, this patch has the effect of removing the downward-pointing arrow that lets you know that the toolbar button will open a menu. There's an open patch that changes that, though: D13064

BUG: 353747
FIXED-IN: 5.47

Test Plan: Added Schema, Mode, Intentation, Bookmarks, Highlighting and Scripts buttons to Kate's toolbar and clicked them. They all showed their drop-down menus immediately.

Reviewers: KTextEditor, Kate, dhaumann, cullmann

Reviewed By: KTextEditor, Kate, dhaumann

Subscribers: hpereiradacosta, kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D13026