From d1695d3b4238b3e69c67ed21ff6edd7b6e0fdcf7 Mon Sep 17 00:00:00 2001 From: kleuter Date: Wed, 23 Mar 2016 17:39:50 +0100 Subject: [PATCH] fix for QMacStyle::drawControl --- 5.3.2/qtbase/src/widgets/styles/qmacstyle_mac.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/5.3.2/qtbase/src/widgets/styles/qmacstyle_mac.mm b/5.3.2/qtbase/src/widgets/styles/qmacstyle_mac.mm index 0845a5e..57a5144 100644 --- a/5.3.2/qtbase/src/widgets/styles/qmacstyle_mac.mm +++ b/5.3.2/qtbase/src/widgets/styles/qmacstyle_mac.mm @@ -3667,9 +3667,9 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter NSBezierPath *pushButtonFocusRingPath; if (bdi.kind == kThemeBevelButton) - pushButtonFocusRingPath = [NSBezierPath bezierPathWithRect:focusRect]; + pushButtonFocusRingPath = [NSBezierPath bezierPathWithRect:NSRectFromCGRect(focusRect)]; else - pushButtonFocusRingPath = [NSBezierPath bezierPathWithRoundedRect:focusRect xRadius:4 yRadius:4]; + pushButtonFocusRingPath = [NSBezierPath bezierPathWithRoundedRect:NSRectFromCGRect(focusRect) xRadius:4 yRadius:4]; qt_drawFocusRingOnPath(cg, pushButtonFocusRingPath); }