Cocoa: Add setContentBorderThickness().
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Mon, 16 Dec 2013 21:38:13 +0000 (22:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 11 Jan 2014 09:48:40 +0000 (10:48 +0100)
commit0caaf9966a8e4ea1e83de866020e61fd5ffaec1a
treee96d8d894fe316672d1eb39cf8b3996293413bda
parent79b07807832d5595823fc6625061d0d194b5ba23
Cocoa: Add setContentBorderThickness().

Add setContentBorderThickness() to the Cocoa platform
plugin. This functions requests that the platform
plugin draws a gradient in the unified title and toolbar
area and/or the status bar area.

The background gradient is drawn before and under
the Qt backing store content. It is expected that
parts of the backing store will be filled with transparent
pixels to allow the  gradient to be visible. To facilitate
this the backing store image is created with an alpha
channel.

Task-number: QTBUG-34411
Change-Id: Iadc5e64ee9b9b42e92fb84a615817fdffd7a8802
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/plugins/platforms/cocoa/qcocoabackingstore.mm
src/plugins/platforms/cocoa/qcocoanativeinterface.h
src/plugins/platforms/cocoa/qcocoanativeinterface.mm
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm
src/plugins/platforms/cocoa/qnsview.mm