aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/DropShadow.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/DropShadow.qml')
-rw-r--r--src/effects/DropShadow.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/effects/DropShadow.qml b/src/effects/DropShadow.qml
index b73e244..909fef9 100644
--- a/src/effects/DropShadow.qml
+++ b/src/effects/DropShadow.qml
@@ -354,6 +354,22 @@ 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 image below, the Rectangle on the left has transparent borders
+ and has blurred edges, whereas the Rectangle on the right does not:
+
+ \snippet DropShadow-transparentBorder-example.qml example
+
+ \image transparentBorder.png
+ */
property bool transparentBorder: false
Loader {