diff options
author | Marko Niemelä <marko.a.niemela@nokia.com> | 2012-01-09 12:54:35 +0200 |
---|---|---|
committer | Marko Niemelä <marko.a.niemela@nokia.com> | 2012-01-09 12:54:35 +0200 |
commit | 8ecab9fe214c404ccc767901220e2adc335f621b (patch) | |
tree | 4d5a316e1d69f628c6a120ef28c362176f77fa7b /tools | |
parent | 4279ed2e74523ab678859bd929e1fe7177a4fa75 (diff) | |
download | qtgraphicaleffects-8ecab9fe214c404ccc767901220e2adc335f621b.tar.gz |
Added MaskedBlur effect
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pngdumper/ItemModel.qml | 39 | ||||
-rw-r--r-- | tools/pngdumper/pngdumper.qml | 11 |
2 files changed, 50 insertions, 0 deletions
diff --git a/tools/pngdumper/ItemModel.qml b/tools/pngdumper/ItemModel.qml index f6d0cfa..6445208 100644 --- a/tools/pngdumper/ItemModel.qml +++ b/tools/pngdumper/ItemModel.qml @@ -815,6 +815,45 @@ VisualItemModel { property variant __values: ["#FFFFFFFF", "#FFFFFF80", "#FFFFFF30"] } + MaskedBlur { + width: size + height: size + source: butterfly + maskSource: blurMask + maximumRadius: 16 + property string __name: "MaskedBlur" + property variant __properties: ["radius", "maximumRadius", "transparentBorder", "fast"] + property string __varyingProperty: "radius" + property variant __values: [0.0, 8.0, 16.0] + } + MaskedBlur { + width: size + height: size + source: butterfly + maskSource: blurMask + radius: 16 + maximumRadius: 16 + property string __name: "MaskedBlur" + property variant __properties: ["radius", "maximumRadius", "transparentBorder", "fast"] + property string __varyingProperty: "fast" + property variant __values: [false, true] + } + MaskedBlur { + function init() { checkerboard = true } + width: size + height: size + source: bug + maskSource: blurMask + radius: 64 + maximumRadius: 16 + fast: true + property string __name: "MaskedBlur" + property variant __properties: ["radius", "maximumRadius", "transparentBorder", "fast"] + property string __varyingProperty: "transparentBorder" + property variant __values: [false, true] + function uninit() { checkerboard = false } + } + Item { id: theEnd width: size diff --git a/tools/pngdumper/pngdumper.qml b/tools/pngdumper/pngdumper.qml index c3dab22..0d47b7d 100644 --- a/tools/pngdumper/pngdumper.qml +++ b/tools/pngdumper/pngdumper.qml @@ -51,6 +51,17 @@ Rectangle { property bool checkerboard: false color: background + Rectangle { + id: blurMask + anchors.fill: parent + visible: false + gradient: Gradient { + GradientStop { position: 0.3; color: "#ff000000" } + GradientStop { position: 0.7; color: "#00000000" } + } + } + + Gradient { id: firstGradient GradientStop { position: 0.000; color: Qt.rgba(1, 0, 0, 1) } |