From 3e665c8df8d0f5e3bb6e4bdda957fbd77f8a76ba Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Thu, 15 Mar 2018 18:44:44 -0700 Subject: QMacStyle: Make CE_PushButtonBevel square if large enough MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Meaning, if larger than the size of a regular NSButton. No intermediate size square buttons anymore. We'll try to get the closest one later, once the sizing problem is solved. We also refactor the button creation code a bit. Change-Id: I965520469546aea596cd1abec2309b40d70399ce Reviewed-by: Morten Johan Sørvig --- src/plugins/styles/mac/qmacstyle_mac_p_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/styles/mac/qmacstyle_mac_p_p.h') diff --git a/src/plugins/styles/mac/qmacstyle_mac_p_p.h b/src/plugins/styles/mac/qmacstyle_mac_p_p.h index af34f8f1e4..d740277e8f 100644 --- a/src/plugins/styles/mac/qmacstyle_mac_p_p.h +++ b/src/plugins/styles/mac/qmacstyle_mac_p_p.h @@ -190,6 +190,7 @@ public: Button_PullDown, // QPushButton with menu Button_PushButton, Button_RadioButton, + Button_SquareButton, // Oversized QPushButton Button_WindowClose, Button_WindowMiniaturize, Button_WindowZoom, @@ -217,6 +218,8 @@ public: bool operator==(const CocoaControl &other) const; QSizeF defaultFrameSize() const; + + bool getCocoaButtonTypeAndBezelStyle(NSButtonType *buttonType, NSBezelStyle *bezelStyle) const; }; -- cgit v1.2.3