aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@sletta.org>2015-10-19 10:42:32 +0200
committerGunnar Sletta <gunnar@sletta.org>2015-10-19 09:46:28 +0000
commit936c16ebe6ea148c09e31cd38f5b25450f9407f5 (patch)
tree9d993bb995766c0733b9a50287a0a126f97d269c /src
parentb09a5387595cb22a0fd67d7409ea52cf60f55bb6 (diff)
Make DropShadow properties into 'real' again.
Change-Id: Icf416b5db2cf9dbb0be29fc0e3b9a855c58035e3 Task-number: QTBUG-48625 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/effects/private/DropShadowBase.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/effects/private/DropShadowBase.qml b/src/effects/private/DropShadowBase.qml
index 8cc259c..3660619 100644
--- a/src/effects/private/DropShadowBase.qml
+++ b/src/effects/private/DropShadowBase.qml
@@ -46,11 +46,11 @@ Item {
id: root
property variant source
- property int radius: samples / 2
+ property real radius: Math.floor(samples / 2)
property int samples: 9
property color color: "black"
- property int horizontalOffset: 0
- property int verticalOffset: 0
+ property real horizontalOffset: 0
+ property real verticalOffset: 0
property real spread: 0.0
property bool cached: false
property bool transparentBorder: true
@@ -59,8 +59,8 @@ Item {
id: blur
width: parent.width
height: parent.height
- x: horizontalOffset
- y: verticalOffset
+ x: Math.round(horizontalOffset)
+ y: Math.round(verticalOffset)
source: root.source
radius: root.radius
samples: root.samples