QMacStyle: Fix focus frame rendering in Yosemite
authorJari Tenhunen <jari.tenhunen@iki.fi>
Mon, 18 Aug 2014 18:08:02 +0000 (21:08 +0300)
committerGabriel de Dietrich <gabriel.dedietrich@digia.com>
Wed, 20 Aug 2014 08:53:09 +0000 (10:53 +0200)
commitca12a739c9ee419c6def4ef3a9d267e74b386651
tree7933e00a02e71d8e646d8cec6e9367d0cc804a49
parent1344f0d1b97689ea31b41c944f4ed3fcb9a72006
QMacStyle: Fix focus frame rendering in Yosemite

Using the HITheme API would result in the frame's right edge
to be missing.

Instead, we use the recommended technique to draw the focus
ring around a custom NSCell. (See
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ControlCell/Articles/ManipulateCellControl.html)

Backport of 769af6689337285927a2637b184149f688332542 from Qt5/qtbase

Change-Id: I8f3992edc065e14632ec4e473732b30bcf4c1937
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/gui/styles/qmacstyle_mac.mm