summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2015-01-26 08:17:57 +0100
committerGunnar Sletta <gunnar@sletta.org>2015-03-13 11:48:42 +0000
commit636286dcc69261159e9d50e0c0afe87521ad8b9c (patch)
tree8ba02c2ec58e65fdd97bca6b6b6995ea38006a7a
parenta37419877148084d95d6a8b62413310fa74e0335 (diff)
downloadqtgraphicaleffects-636286dcc69261159e9d50e0c0afe87521ad8b9c.tar.gz
qtgraphicaleffects-636286dcc69261159e9d50e0c0afe87521ad8b9c.tar.bz2
qtgraphicaleffects-636286dcc69261159e9d50e0c0afe87521ad8b9c.zip
Fix qdoc warnings in the new GaussianBlur implementation.
Change-Id: Ia2e04f8d16fa90a56aad2eb65aa14eef34c7a3f0 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r--src/effects/GaussianBlur.qml30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/effects/GaussianBlur.qml b/src/effects/GaussianBlur.qml
index 72a55f3..46ca28c 100644
--- a/src/effects/GaussianBlur.qml
+++ b/src/effects/GaussianBlur.qml
@@ -137,7 +137,7 @@ Item {
By default, the property is set to \c 9.
- \warn This property is not intended to be animated. Changing this property may
+ \note This property is not intended to be animated. Changing this property may
cause the underlying OpenGL shaders to be recompiled.
*/
@@ -227,11 +227,6 @@ Item {
\li \l deviation: 2.7
\li \l deviation: 2.7
\endtable
-
- \warn This property is not intended to be animated. Changing this property may
- cause the underlying OpenGL shaders to be recompiled.
-
-
*/
property bool transparentBorder: false
@@ -252,25 +247,36 @@ Item {
// private members...
+ /*! \internal */
property int _paddedTexWidth: transparentBorder ? width + 2 * _kernelRadius: width;
+ /*! \internal */
property int _paddedTexHeight: transparentBorder ? height + 2 * _kernelRadius: height;
+ /*! \internal */
property int _kernelRadius: Math.max(0, samples / 2);
+ /*! \internal */
property int _kernelSize: _kernelRadius * 2 + 1;
+ /*! \internal */
property int _dpr: Screen.devicePixelRatio;
+ /*! \internal */
property bool _alphaOnly: false;
+ /*! \internal */
property alias _output: sourceProxy.output;
+ /*! \internal */
property alias _outputRect: sourceProxy.sourceRect;
+ /*! \internal */
property alias _color: verticalBlur.color;
+ /*! \internal */
property real _thickness: 0;
- onSamplesChanged: rebuildShaders();
- on_KernelSizeChanged: rebuildShaders();
- onDeviationChanged: rebuildShaders();
- on_DprChanged: rebuildShaders();
- Component.onCompleted: rebuildShaders();
+ onSamplesChanged: _rebuildShaders();
+ on_KernelSizeChanged: _rebuildShaders();
+ onDeviationChanged: _rebuildShaders();
+ on_DprChanged: _rebuildShaders();
+ Component.onCompleted: _rebuildShaders();
- function rebuildShaders() {
+ /*! \internal */
+ function _rebuildShaders() {
if (samples < 1)
return;