diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2014-09-29 13:50:23 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@digia.com> | 2014-09-30 12:48:36 +0200 |
commit | f2302341b8852cda7fbc95ba64d4a5a376d68b8a (patch) | |
tree | f835d6b5208e7080723c4899a6caaec54b2a4f64 /src/effects/Glow.qml | |
parent | bdd7e47ff1357bcc3b81c7ff5c10189c6a9b0290 (diff) | |
download | qtgraphicaleffects-f2302341b8852cda7fbc95ba64d4a5a376d68b8a.tar.gz |
Document DropShadow and Glow's transparentBorder properties.
Change-Id: I1f4be68c5b364e5d2151ed26b079a0f00ac31f0c
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/effects/Glow.qml')
-rw-r--r-- | src/effects/Glow.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/effects/Glow.qml b/src/effects/Glow.qml index c5a82c6..668fb74 100644 --- a/src/effects/Glow.qml +++ b/src/effects/Glow.qml @@ -261,6 +261,23 @@ Item { */ property bool cached: false + + /*! + This property determines whether or not the effect has a transparent + border. + + When set to \c true, the exterior of the item is padded with a 1 pixel + wide transparent edge, making sampling outside the source texture use + transparency instead of the edge pixels. Without this property, an + image which has opaque edges will not get a blurred edge. + + In the snippet below, the Rectangle on the left has transparent borders + and has blurred edges, whereas the Rectangle on the right does not. + + \snippet Glow-transparentBorder-example.qml example + + \image transparentBorder.png + */ property bool transparentBorder: false Loader { |