diff options
author | Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> | 2016-02-24 17:19:37 -0800 |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> | 2016-03-17 16:57:31 +0000 |
commit | 7c7ece94429d6e12e0543c275d26fd90501193ff (patch) | |
tree | 3718c38c165e4484c21e491c02791caaacdb1a4f /src/widgets/styles/qwindowsstyle_p.h | |
parent | c6bf48dcbfd6b1048cddfd127b95dce27815709f (diff) |
QMacStyle: Ensure proper focus ring clipping
By rendering the focus ring directly on the backing NSView, we
would ignore the painter's clipping information. It would also
require creating a custom CGContext and attached NSGraphicsContext
every time.
The first step is to render the focus ring on a pixmap and then
use the painter to render that pixamp. This ensures the clipping
is done properly. The second step is to cache said pixmap and
render it as a nine-patch image.
Change-Id: I1df1baf7dc490023319f025a16306d4f04e5264c
Task-number: QTBUG-50645
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Diffstat (limited to 'src/widgets/styles/qwindowsstyle_p.h')
0 files changed, 0 insertions, 0 deletions