Ticket #46536: patch-qmacstyle_mac.diff

File patch-qmacstyle_mac.diff, 876 bytes (added by RJVB (René Bertin), 10 years ago)
  • .//qtbase/src/widgets/styles/qmacstyle_mac.mm

    old new  
    36673667
    36683668                NSBezierPath *pushButtonFocusRingPath;
    36693669                if (bdi.kind == kThemeBevelButton)
    3670                     pushButtonFocusRingPath = [NSBezierPath bezierPathWithRect:focusRect];
     3670                    pushButtonFocusRingPath = [NSBezierPath bezierPathWithRect:NSRectFromCGRect(focusRect)];
    36713671                else
    3672                     pushButtonFocusRingPath = [NSBezierPath bezierPathWithRoundedRect:focusRect xRadius:4 yRadius:4];
     3672                    pushButtonFocusRingPath = [NSBezierPath bezierPathWithRoundedRect:NSRectFromCGRect(focusRect) xRadius:4 yRadius:4];
    36733673                qt_drawFocusRingOnPath(cg, pushButtonFocusRingPath);
    36743674            }
    36753675