diff options
author | Marko Niemelä <marko.a.niemela@nokia.com> | 2012-01-30 09:39:39 +0200 |
---|---|---|
committer | Marko Niemelä <marko.a.niemela@nokia.com> | 2012-01-30 09:39:39 +0200 |
commit | c0eef270ec16429a227a6a8d829047a147f4c0f7 (patch) | |
tree | 053edf4e976beca54665ce27dac1543ed55e33fe /tests | |
parent | 59be45ef7616ef6dc55a7ebdd73a72b1785a95cb (diff) | |
download | qtgraphicaleffects-c0eef270ec16429a227a6a8d829047a147f4c0f7.tar.gz |
Fixed MaskedBlur transparentBorder
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/testbed/TestMaskedBlur.qml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/manual/testbed/TestMaskedBlur.qml b/tests/manual/testbed/TestMaskedBlur.qml index 8944026..c99eb0c 100644 --- a/tests/manual/testbed/TestMaskedBlur.qml +++ b/tests/manual/testbed/TestMaskedBlur.qml @@ -44,16 +44,19 @@ import "../../../src/effects" TestCaseTemplate { ImageSource { id: imageSource - source: "images/butterfly.png" } - Rectangle { + Item { id: maskSource anchors.fill: imageSource - visible: !enabledCheckBox.selected - gradient: Gradient { - GradientStop { position: 0.3; color: Qt.rgba(maskAlphaBeginSlider.value, maskAlphaBeginSlider.value, maskAlphaBeginSlider.value, maskAlphaBeginSlider.value) } - GradientStop { position: 0.7; color: Qt.rgba(maskAlphaEndSlider.value, maskAlphaEndSlider.value, maskAlphaEndSlider.value, maskAlphaEndSlider.value) } + visible: false + Rectangle { + rotation: -90 + anchors.fill: parent + gradient: Gradient { + GradientStop { position: 0.2; color: Qt.rgba(maskAlphaBeginSlider.value, maskAlphaBeginSlider.value, maskAlphaBeginSlider.value, maskAlphaBeginSlider.value) } + GradientStop { position: 0.5; color: Qt.rgba(maskAlphaEndSlider.value, maskAlphaEndSlider.value, maskAlphaEndSlider.value, maskAlphaEndSlider.value) } + } } } @@ -77,7 +80,7 @@ TestCaseTemplate { Slider { id: radiusSlider minimum: 0.0 - maximum: 64.0 + maximum: 32.0 value: 16.0 caption: "radius" } |