aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2021-08-12 11:24:12 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-08-12 17:51:01 +0200
commit425911d07fc8c3bb899226a1355c38a166b5e1de (patch)
tree1d5e0e5ae3ec66b10920bb9104e7d12c69b4a52f
parent59ab3e11433a5157aac0f3af7c0d7fe70a373373 (diff)
Remove qtgraphicaleffects sources and add note about its state in Qt 6HEADdev
Add a README.md mentioning the documentation on where the ported effects can be found, as well as how to check out the Qt5 branch. Pick-to: 6.2 Fixes: QTBUG-95757 Change-Id: Ib47c7e73f8622c8e287df0f74c6f16a5113b357e Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--.cmake.conf1
-rw-r--r--.gitattributes3
-rw-r--r--.gitignore84
-rw-r--r--.prev_CMakeLists.txt20
-rw-r--r--.qmake.conf5
-rw-r--r--.tag1
-rw-r--r--CMakeLists.txt20
-rw-r--r--LICENSE.BSD27
-rw-r--r--LICENSE.FDL450
-rw-r--r--LICENSE.GPL3-EXCEPT704
-rw-r--r--README.md28
-rw-r--r--coin/module_config.yaml12
-rw-r--r--dependencies.yaml4
-rw-r--r--dist/changes-5.0.122
-rw-r--r--dist/changes-5.0.222
-rw-r--r--dist/changes-5.1.022
-rw-r--r--dist/changes-5.1.125
-rw-r--r--dist/changes-5.10.028
-rw-r--r--dist/changes-5.10.126
-rw-r--r--dist/changes-5.11.022
-rw-r--r--dist/changes-5.11.124
-rw-r--r--dist/changes-5.11.224
-rw-r--r--dist/changes-5.11.320
-rw-r--r--dist/changes-5.12.027
-rw-r--r--dist/changes-5.12.120
-rw-r--r--dist/changes-5.12.220
-rw-r--r--dist/changes-5.12.320
-rw-r--r--dist/changes-5.12.420
-rw-r--r--dist/changes-5.12.520
-rw-r--r--dist/changes-5.13.018
-rw-r--r--dist/changes-5.13.120
-rw-r--r--dist/changes-5.13.220
-rw-r--r--dist/changes-5.14.018
-rw-r--r--dist/changes-5.14.120
-rw-r--r--dist/changes-5.14.220
-rw-r--r--dist/changes-5.15.018
-rw-r--r--dist/changes-5.15.125
-rw-r--r--dist/changes-5.6.055
-rw-r--r--dist/changes-5.6.312
-rw-r--r--dist/changes-5.7.037
-rw-r--r--dist/changes-5.8.023
-rw-r--r--dist/changes-5.9.022
-rw-r--r--dist/changes-5.9.124
-rw-r--r--dist/changes-5.9.225
-rw-r--r--dist/changes-5.9.324
-rw-r--r--dist/changes-5.9.425
-rw-r--r--dist/changes-5.9.524
-rw-r--r--dist/changes-5.9.624
-rw-r--r--qtgraphicaleffects.pro8
-rw-r--r--src/CMakeLists.txt3
-rw-r--r--src/effects/BrightnessContrast.qml203
-rw-r--r--src/effects/CMakeLists.txt143
-rw-r--r--src/effects/ColorOverlay.qml157
-rw-r--r--src/effects/Colorize.qml247
-rw-r--r--src/effects/ConicalGradient.qml342
-rw-r--r--src/effects/Desaturate.qml156
-rw-r--r--src/effects/Displace.qml199
-rw-r--r--src/effects/DropShadow.qml326
-rw-r--r--src/effects/FastBlur.qml446
-rw-r--r--src/effects/GammaAdjust.qml193
-rw-r--r--src/effects/Glow.qml247
-rw-r--r--src/effects/HueSaturation.qml233
-rw-r--r--src/effects/LevelAdjust.qml449
-rw-r--r--src/effects/LinearGradient.qml332
-rw-r--r--src/effects/OpacityMask.qml171
-rw-r--r--src/effects/RadialGradient.qml419
-rw-r--r--src/effects/RectangularGlow.qml278
-rw-r--r--src/effects/ThresholdMask.qml224
-rw-r--r--src/effects/doc/images/BrightnessContrast_brightness1.pngbin90550 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_brightness2.pngbin146105 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_brightness3.pngbin78231 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_bug.pngbin86971 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_contrast1.pngbin118354 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_contrast2.pngbin146105 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_contrast3.pngbin74037 -> 0 bytes
-rw-r--r--src/effects/doc/images/BrightnessContrast_contrast_graph.pngbin10294 -> 0 bytes
-rw-r--r--src/effects/doc/images/ColorOverlay_butterfly.pngbin21119 -> 0 bytes
-rw-r--r--src/effects/doc/images/ColorOverlay_color1.pngbin20971 -> 0 bytes
-rw-r--r--src/effects/doc/images/ColorOverlay_color2.pngbin21216 -> 0 bytes
-rw-r--r--src/effects/doc/images/ColorOverlay_color3.pngbin21249 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_bug.pngbin90630 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_hue1.pngbin117918 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_hue2.pngbin101185 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_hue3.pngbin118495 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_hue_scale.pngbin2507 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_lightness1.pngbin56097 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_lightness2.pngbin100170 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_lightness3.pngbin63887 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_saturation1.pngbin85926 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_saturation2.pngbin116288 -> 0 bytes
-rw-r--r--src/effects/doc/images/Colorize_saturation3.pngbin100170 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient.pngbin13963 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_angle1.pngbin14224 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_angle2.pngbin15762 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_angle3.pngbin14271 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_gradient1.pngbin22589 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_gradient2.pngbin18418 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_gradient3.pngbin19164 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_horizontalOffset1.pngbin14236 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_horizontalOffset2.pngbin14224 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_horizontalOffset3.pngbin13786 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_maskSource1.pngbin14224 -> 0 bytes
-rw-r--r--src/effects/doc/images/ConicalGradient_maskSource2.pngbin12285 -> 0 bytes
-rw-r--r--src/effects/doc/images/Desaturate_bug.pngbin109437 -> 0 bytes
-rw-r--r--src/effects/doc/images/Desaturate_desaturation1.pngbin137558 -> 0 bytes
-rw-r--r--src/effects/doc/images/Desaturate_desaturation2.pngbin131559 -> 0 bytes
-rw-r--r--src/effects/doc/images/Desaturate_desaturation3.pngbin76845 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_bug.pngbin126526 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_displacement1.pngbin138262 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_displacement2.pngbin137579 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_displacement3.pngbin136887 -> 0 bytes
-rw-r--r--src/effects/doc/images/Displace_map.pngbin15520 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow-transparentBorder.pngbin8932 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_butterfly.pngbin28892 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_color1.pngbin28151 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_color2.pngbin29274 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_color3.pngbin27840 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_fast1.pngbin26617 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_fast2.pngbin29947 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_horizontalOffset1.pngbin27248 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_horizontalOffset2.pngbin25137 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_horizontalOffset3.pngbin27152 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_radius1.pngbin26410 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_radius2.pngbin26340 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_radius3.pngbin26838 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_spread1.pngbin26297 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_spread2.pngbin26288 -> 0 bytes
-rw-r--r--src/effects/doc/images/DropShadow_spread3.pngbin21974 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_bug.pngbin66467 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_radius1.pngbin146075 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_radius2.pngbin62965 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_radius3.pngbin45502 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_transparentBorder1.pngbin45502 -> 0 bytes
-rw-r--r--src/effects/doc/images/FastBlur_transparentBorder2.pngbin62518 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_bug.pngbin110990 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma1.pngbin132555 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma1_graph.pngbin12313 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma2.pngbin146105 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma2_graph.pngbin10524 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma3.pngbin148761 -> 0 bytes
-rw-r--r--src/effects/doc/images/GammaAdjust_gamma3_graph.pngbin12152 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow-transparentBorder.pngbin8212 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_butterfly.pngbin30815 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_color1.pngbin26917 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_color2.pngbin24307 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_color3.pngbin24145 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_fast1.pngbin28113 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_fast2.pngbin31388 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_radius1.pngbin22700 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_radius2.pngbin25277 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_radius3.pngbin26267 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_spread1.pngbin25502 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_spread2.pngbin26917 -> 0 bytes
-rw-r--r--src/effects/doc/images/Glow_spread3.pngbin23249 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_bug.pngbin131055 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_hue1.pngbin147628 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_hue2.pngbin146104 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_hue3.pngbin147161 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_lightness1.pngbin118304 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_lightness2.pngbin146104 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_lightness3.pngbin118329 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_saturation1.pngbin130480 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_saturation2.pngbin146104 -> 0 bytes
-rw-r--r--src/effects/doc/images/HueSaturation_saturation3.pngbin145687 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_butterfly.pngbin20574 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_default_curve.pngbin8702 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma1.pngbin22502 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma1_curve.pngbin8702 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma2.pngbin22179 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma2_curve.pngbin16343 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma3.pngbin19273 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_gamma3_curve.pngbin15837 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput1.pngbin20946 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput2.pngbin19353 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput2_curve.pngbin11589 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput3.pngbin18810 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumInput3_curve.pngbin11224 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput1.pngbin20946 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput2.pngbin20571 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput2_curve.pngbin11727 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput3.pngbin20152 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_maximumOutput3_curve.pngbin11143 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput1.pngbin20946 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput2.pngbin21299 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput2_curve.pngbin11925 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput3.pngbin21174 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumInput3_curve.pngbin11862 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput1.pngbin20946 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput2.pngbin20625 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput2_curve.pngbin11976 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput3.pngbin20248 -> 0 bytes
-rw-r--r--src/effects/doc/images/LevelAdjust_minimumOutput3_curve.pngbin11690 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient.pngbin1014 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_end1.pngbin3038 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_end2.pngbin3370 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_end3.pngbin964 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_gradient1.pngbin2970 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_gradient2.pngbin5035 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_gradient3.pngbin6921 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_maskSource1.pngbin3038 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_maskSource2.pngbin9197 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_start1.pngbin3038 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_start2.pngbin3120 -> 0 bytes
-rw-r--r--src/effects/doc/images/LinearGradient_start3.pngbin994 -> 0 bytes
-rw-r--r--src/effects/doc/images/OpacityMask_bug.pngbin32712 -> 0 bytes
-rw-r--r--src/effects/doc/images/OpacityMask_mask.pngbin23210 -> 0 bytes
-rw-r--r--src/effects/doc/images/Original_bug.pngbin126233 -> 0 bytes
-rw-r--r--src/effects/doc/images/Original_butterfly.pngbin26172 -> 0 bytes
-rw-r--r--src/effects/doc/images/Original_butterfly_black.pngbin23291 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient.pngbin14615 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_angle1.pngbin13226 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_angle2.pngbin12562 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_angle3.pngbin8579 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_default.pngbin38888 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_gradient1.pngbin23482 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_gradient2.pngbin23997 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_gradient3.pngbin24488 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalOffset1.pngbin12449 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalOffset2.pngbin14898 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalOffset3.pngbin12494 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalRadius1.pngbin14898 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalRadius2.pngbin13226 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_horizontalRadius3.pngbin25340 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_maskSource1.pngbin14898 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_maskSource2.pngbin10670 -> 0 bytes
-rw-r--r--src/effects/doc/images/RadialGradient_withmask.pngbin36472 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_applied.pngbin4771 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_color1.pngbin4596 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_color2.pngbin5881 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_color3.pngbin5808 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_cornerRadius1.pngbin2132 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_cornerRadius2.pngbin4596 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_cornerRadius3.pngbin7238 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_glowRadius1.pngbin3586 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_glowRadius2.pngbin4596 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_glowRadius3.pngbin6451 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_spread1.pngbin4596 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_spread2.pngbin3468 -> 0 bytes
-rw-r--r--src/effects/doc/images/RectangularGlow_spread3.pngbin950 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_bug.pngbin122641 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_mask.pngbin67419 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_spread1.pngbin103062 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_spread2.pngbin140580 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_spread3.pngbin164039 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_threshold1.pngbin146105 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_threshold2.pngbin118087 -> 0 bytes
-rw-r--r--src/effects/doc/images/ThresholdMask_threshold3.pngbin73829 -> 0 bytes
-rw-r--r--src/effects/doc/images/bug.jpgbin376684 -> 0 bytes
-rw-r--r--src/effects/doc/images/butterfly.pngbin36912 -> 0 bytes
-rw-r--r--src/effects/doc/images/checker.pngbin1202 -> 0 bytes
-rw-r--r--src/effects/doc/images/fog.pngbin192467 -> 0 bytes
-rw-r--r--src/effects/doc/images/glass_normal.pngbin13489 -> 0 bytes
-rw-r--r--src/effects/doc/qtgraphicaleffects.qdocconf44
-rw-r--r--src/effects/doc/snippets/BrightnessContrast-example.qml74
-rw-r--r--src/effects/doc/snippets/ColorOverlay-example.qml73
-rw-r--r--src/effects/doc/snippets/Colorize-example.qml75
-rw-r--r--src/effects/doc/snippets/ConicalGradient-example.qml68
-rw-r--r--src/effects/doc/snippets/Desaturate-example.qml73
-rw-r--r--src/effects/doc/snippets/Displace-example.qml87
-rw-r--r--src/effects/doc/snippets/DropShadow-example.qml80
-rw-r--r--src/effects/doc/snippets/DropShadow-transparentBorder-example.qml92
-rw-r--r--src/effects/doc/snippets/FastBlur-example.qml75
-rw-r--r--src/effects/doc/snippets/GammaAdjust-example.qml73
-rw-r--r--src/effects/doc/snippets/Glow-example.qml79
-rw-r--r--src/effects/doc/snippets/Glow-transparentBorder-example.qml92
-rw-r--r--src/effects/doc/snippets/HueSaturation-example.qml75
-rw-r--r--src/effects/doc/snippets/LevelAdjust-example.qml74
-rw-r--r--src/effects/doc/snippets/LinearGradient-example.qml69
-rw-r--r--src/effects/doc/snippets/OpacityMask-example.qml81
-rw-r--r--src/effects/doc/snippets/RadialGradient-example.qml66
-rw-r--r--src/effects/doc/snippets/RectangularGlow-example.qml84
-rw-r--r--src/effects/doc/snippets/ThresholdMask-example.qml90
-rw-r--r--src/effects/doc/src/overview-graphicaleffects.qdoc69
-rw-r--r--src/effects/doc/src/qtgraphicaleffects.qdoc89
-rw-r--r--src/effects/effects.pro3
-rw-r--r--src/effects/effects_plugin.pro32
-rw-r--r--src/effects/plugin.cpp78
-rw-r--r--src/effects/plugins.qmltypes11
-rw-r--r--src/effects/private/.prev_CMakeLists.txt73
-rw-r--r--src/effects/private/CMakeLists.txt44
-rw-r--r--src/effects/private/FastGlow.qml342
-rw-r--r--src/effects/private/plugin.cpp79
-rw-r--r--src/effects/private/private.pro21
-rw-r--r--src/effects/private/qgfxsourceproxy.cpp216
-rw-r--r--src/effects/private/qgfxsourceproxy_p.h125
-rw-r--r--src/effects/private/qmldir4
-rw-r--r--src/effects/qmldir23
-rw-r--r--src/effects/qtgraphicaleffectsshaders.qrc28
-rw-r--r--src/effects/shaders_ng/brightnesscontrast.frag26
-rw-r--r--src/effects/shaders_ng/brightnesscontrast.frag.qsbbin2491 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/colorize.frag72
-rw-r--r--src/effects/shaders_ng/colorize.frag.qsbbin4482 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/coloroverlay.frag20
-rw-r--r--src/effects/shaders_ng/coloroverlay.frag.qsbbin1908 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/compile.bat77
-rw-r--r--src/effects/shaders_ng/conicalgradient_mask.frag25
-rw-r--r--src/effects/shaders_ng/conicalgradient_mask.frag.qsbbin2354 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/conicalgradient_nomask.frag23
-rw-r--r--src/effects/shaders_ng/conicalgradient_nomask.frag.qsbbin2143 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/desaturate.frag21
-rw-r--r--src/effects/shaders_ng/desaturate.frag.qsbbin1865 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/displace.frag39
-rw-r--r--src/effects/shaders_ng/displace.frag.qsbbin3270 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/fastblur.frag32
-rw-r--r--src/effects/shaders_ng/fastblur.frag.qsbbin2306 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/fastblur_internal.frag25
-rw-r--r--src/effects/shaders_ng/fastblur_internal.frag.qsbbin1863 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/fastblur_internal.vert27
-rw-r--r--src/effects/shaders_ng/fastblur_internal.vert.qsbbin2614 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/fastglow.frag40
-rw-r--r--src/effects/shaders_ng/fastglow.frag.qsbbin2944 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/gammaadjust.frag22
-rw-r--r--src/effects/shaders_ng/gammaadjust.frag.qsbbin1924 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/huesaturation.frag91
-rw-r--r--src/effects/shaders_ng/huesaturation.frag.qsbbin5549 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/leveladjust.frag47
-rw-r--r--src/effects/shaders_ng/leveladjust.frag.qsbbin3685 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/lineargradient.vert31
-rw-r--r--src/effects/shaders_ng/lineargradient.vert.qsbbin2474 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/lineargradient_mask.frag23
-rw-r--r--src/effects/shaders_ng/lineargradient_mask.frag.qsbbin1906 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/lineargradient_nomask.frag20
-rw-r--r--src/effects/shaders_ng/lineargradient_nomask.frag.qsbbin1621 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/opacitymask.frag19
-rw-r--r--src/effects/shaders_ng/opacitymask.frag.qsbbin1601 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/opacitymask_invert.frag19
-rw-r--r--src/effects/shaders_ng/opacitymask_invert.frag.qsbbin1643 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/radialgradient.vert39
-rw-r--r--src/effects/shaders_ng/radialgradient.vert.qsbbin2778 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/radialgradient_mask.frag25
-rw-r--r--src/effects/shaders_ng/radialgradient_mask.frag.qsbbin2187 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/radialgradient_nomask.frag23
-rw-r--r--src/effects/shaders_ng/radialgradient_nomask.frag.qsbbin1946 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/rectangularglow.frag30
-rw-r--r--src/effects/shaders_ng/rectangularglow.frag.qsbbin2274 -> 0 bytes
-rw-r--r--src/effects/shaders_ng/thresholdmask.frag23
-rw-r--r--src/effects/shaders_ng/thresholdmask.frag.qsbbin2028 -> 0 bytes
-rw-r--r--src/src.pro2
-rw-r--r--sync.profile2
-rw-r--r--tests/.prev_CMakeLists.txt7
-rw-r--r--tests/CMakeLists.txt8
-rw-r--r--tests/auto/CMakeLists.txt17
-rw-r--r--tests/auto/auto.pro11
-rw-r--r--tests/auto/dummy.qml6
-rw-r--r--tests/auto/tst_qtgraphicaleffects.cpp542
-rw-r--r--tests/manual/CMakeLists.txt3
-rw-r--r--tests/manual/SourceProxyTest.qml112
-rw-r--r--tests/manual/manual.pro4
-rw-r--r--tests/manual/smooth/CMakeLists.txt48
-rw-r--r--tests/manual/smooth/CellContainer.qml9
-rw-r--r--tests/manual/smooth/SourceImage.qml8
-rw-r--r--tests/manual/smooth/main.cpp67
-rw-r--r--tests/manual/smooth/main.qml358
-rw-r--r--tests/manual/smooth/resources.qrc8
-rw-r--r--tests/manual/smooth/smooth.pro30
-rw-r--r--tests/manual/smooth/star.pngbin641 -> 0 bytes
-rw-r--r--tests/manual/testSourceProxy.qml233
-rw-r--r--tests/manual/testbed/BGColorPicker.qml120
-rw-r--r--tests/manual/testbed/CheckBox.qml71
-rw-r--r--tests/manual/testbed/ColorPicker.qml212
-rw-r--r--tests/manual/testbed/ColorSlider.qml120
-rw-r--r--tests/manual/testbed/Control.qml99
-rw-r--r--tests/manual/testbed/ImageSource.qml59
-rw-r--r--tests/manual/testbed/Label.qml68
-rw-r--r--tests/manual/testbed/LevelSlider.qml189
-rw-r--r--tests/manual/testbed/PositionPicker.qml60
-rw-r--r--tests/manual/testbed/ProgressBar.qml101
-rw-r--r--tests/manual/testbed/RadioButton.qml69
-rw-r--r--tests/manual/testbed/RadioButtonColumn.qml58
-rw-r--r--tests/manual/testbed/RgbaColorPicker.qml103
-rw-r--r--tests/manual/testbed/Slider.qml131
-rw-r--r--tests/manual/testbed/TestBedModel.qml50
-rw-r--r--tests/manual/testbed/TestBrightnessContrast.qml96
-rw-r--r--tests/manual/testbed/TestCaseTemplate.qml130
-rw-r--r--tests/manual/testbed/TestColorOverlay.qml88
-rw-r--r--tests/manual/testbed/TestColorize.qml90
-rw-r--r--tests/manual/testbed/TestConicalGradient.qml134
-rw-r--r--tests/manual/testbed/TestDesaturate.qml88
-rw-r--r--tests/manual/testbed/TestDisplace.qml131
-rw-r--r--tests/manual/testbed/TestDropShadow.qml128
-rw-r--r--tests/manual/testbed/TestFastBlur.qml94
-rw-r--r--tests/manual/testbed/TestGammaAdjust.qml89
-rw-r--r--tests/manual/testbed/TestGlow.qml110
-rw-r--r--tests/manual/testbed/TestHueSaturation.qml105
-rw-r--r--tests/manual/testbed/TestLevelAdjust.qml149
-rw-r--r--tests/manual/testbed/TestLinearGradient.qml144
-rw-r--r--tests/manual/testbed/TestOpacityMask.qml83
-rw-r--r--tests/manual/testbed/TestRadialGradient.qml149
-rw-r--r--tests/manual/testbed/TestRectangularGlow.qml126
-rw-r--r--tests/manual/testbed/TestThresholdMask.qml102
-rw-r--r--tests/manual/testbed/images/background.pngbin80 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/bug.jpgbin376684 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/butterfly.pngbin36912 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/checkbox_inner.pngbin236 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/checkbox_outer.pngbin227 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/checker.pngbin1202 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/collapse.pngbin336 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/color_selection_hl.pngbin533 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/color_selection_mask.pngbin231 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/expand.pngbin343 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/fog.pngbin192467 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/glass_normal.pngbin13489 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/group_bottom.pngbin157 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/group_top.pngbin167 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_blend.pngbin2940 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_blur.pngbin303 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_color.pngbin3021 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_distortion.pngbin229 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_drop_shadow.pngbin160 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_glow.pngbin285 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_gradient.pngbin182 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_mask.pngbin2837 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/icon_motion_blur.pngbin304 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/radiobutton_inner.pngbin274 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/radiobutton_outer.pngbin347 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_handle.pngbin409 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_handle_b.pngbin867 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_handle_black.pngbin390 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_handle_g.pngbin1851 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_handle_gray.pngbin401 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_handle_pressed.pngbin387 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_handle_r.pngbin1842 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_handle_white.pngbin373 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_track.pngbin198 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_track_filled.pngbin153 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_track_left.pngbin1163 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/slider_track_right.pngbin1149 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/title.pngbin160 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/workarea_left.pngbin123 -> 0 bytes
-rw-r--r--tests/manual/testbed/images/workarea_right.pngbin77 -> 0 bytes
-rw-r--r--tests/manual/testbed/testBed.qml156
-rw-r--r--tests/manual/testbed/testbed.qmlproject16
-rw-r--r--tests/system/auto/auto.pro16
-rw-r--r--tests/system/auto/imagecompare.cpp88
-rw-r--r--tests/system/auto/imagecompare.h54
-rw-r--r--tests/system/auto/main.cpp63
-rw-r--r--tests/system/auto/tst_imagecompare.cpp2121
-rw-r--r--tests/system/auto/tst_imagecompare.h120
-rw-r--r--tests/tests.pro2
-rw-r--r--tools/pngdumper/ItemModel1.qml307
-rw-r--r--tools/pngdumper/ItemModel2.qml385
-rw-r--r--tools/pngdumper/ItemModel3.qml243
-rw-r--r--tools/pngdumper/ItemModel4.qml79
-rw-r--r--tools/pngdumper/pngdumper.cpp61
-rw-r--r--tools/pngdumper/pngdumper.h54
-rw-r--r--tools/pngdumper/pngdumper.pro41
-rw-r--r--tools/pngdumper/pngdumper.qml240
-rwxr-xr-xtools/pngdumper/pngdumper.sh49
-rw-r--r--tools/pngdumper/pngdumper_plugin.cpp42
-rw-r--r--tools/pngdumper/pngdumper_plugin.h44
-rw-r--r--tools/pngdumper/qmldir2
451 files changed, 28 insertions, 19727 deletions
diff --git a/.cmake.conf b/.cmake.conf
deleted file mode 100644
index 4e73b3d..0000000
--- a/.cmake.conf
+++ /dev/null
@@ -1 +0,0 @@
-set(QT_REPO_MODULE_VERSION "6.2.0")
diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index a96f8f5..0000000
--- a/.gitattributes
+++ /dev/null
@@ -1,3 +0,0 @@
-.tag export-subst
-.gitignore export-ignore
-.gitattributes export-ignore
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index a1847a2..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,84 +0,0 @@
-# This file is used to ignore files which are generated in the Qt build system
-# ----------------------------------------------------------------------------
-
-*.so
-*.so.*
-*.app
-*.exe
-*.dll
-*.dylib
-*.lib
-*.exp
-*.a
-*.la
-*.core
-*.moc
-*.o
-*.obj
-*.orig
-*.swp
-*.rej
-*.so
-*.pbxuser
-*.mode1
-*.mode1v3
-*_pch.h.cpp
-*_resource.rc
-*~
-.#*
-*.*#
-.qmake.stash
-.qmake.cache
-.qmake.vars
-*.prl
-tags
-.DS_Store
-*.debug
-Makefile*
-*.Debug
-*.Release
-*.prl
-*.pro.user
-*.qmlproject.user*
-moc_*.cpp
-ui_*.h
-qrc_*.cpp
-callgrind.out.*
-pcviewer.cfg
-*.flc
-.*.swp
-*.ib_pdb_index
-*.idb
-*.ilk
-*.pdb
-*.sln
-*.suo
-*.vcproj
-*vcproj.*.*.user
-*.ncb
-.pch
-.rcc
-.project
-.cproject
-.make.cache
-android-build
-app_process
-qtc-debugging-helper
-android-*.so-deployment-settings.json
-*.directory
-*_plugin_import.cpp
-*_wrapper.sh
-*_wrapper.bat
-*.mak
-*.xib
-*.plist
-*.pbxproj
-*_plugin_import.cpp
-*.xcsettings
-*.xcscheme
-*.xcodeproj
-qt.conf
-*.version
-*.version.in
-*.qmlc
-codeattributions.qdoc
diff --git a/.prev_CMakeLists.txt b/.prev_CMakeLists.txt
deleted file mode 100644
index 60c00c0..0000000
--- a/.prev_CMakeLists.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# Generated from qtgraphicaleffects.pro.
-
-cmake_minimum_required(VERSION 3.15.0)
-
-include(.cmake.conf)
-project(graphicaleffects_FIXME
- VERSION "${QT_REPO_MODULE_VERSION}"
- DESCRIPTION "Qt graphicaleffects_FIXME Libraries"
- HOMEPAGE_URL "https://qt.io/"
- LANGUAGES CXX C
-)
-
-find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core SET_ME_TO_SOMETHING_USEFUL)
-find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL)
-
-if(NOT TARGET Qt::Quick)
- message(NOTICE "Skipping the build as the condition \"TARGET Qt::Quick\" is not met.")
- return()
-endif()
-qt_build_repo()
diff --git a/.qmake.conf b/.qmake.conf
deleted file mode 100644
index 15b2d56..0000000
--- a/.qmake.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-load(qt_build_config)
-
-DEFINES += QT_NO_FOREACH QT_NO_JAVA_STYLE_ITERATORS
-
-MODULE_VERSION = 6.2.0
diff --git a/.tag b/.tag
deleted file mode 100644
index 6828f88..0000000
--- a/.tag
+++ /dev/null
@@ -1 +0,0 @@
-$Format:%H$
diff --git a/CMakeLists.txt b/CMakeLists.txt
deleted file mode 100644
index 85a3a47..0000000
--- a/CMakeLists.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# Generated from qtgraphicaleffects.pro.
-
-cmake_minimum_required(VERSION 3.15.0)
-
-include(.cmake.conf)
-project(QtGraphicalEffects # special case
- VERSION "${QT_REPO_MODULE_VERSION}"
- DESCRIPTION "Qt Graphical Effects" # special case
- HOMEPAGE_URL "https://qt.io/"
- LANGUAGES CXX C
-)
-
-find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case
-find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Quick)
-
-if(NOT TARGET Qt::Quick)
- message(NOTICE "Skipping the build as the condition \"TARGET Qt::Quick\" is not met.")
- return()
-endif()
-qt_build_repo()
diff --git a/LICENSE.BSD b/LICENSE.BSD
deleted file mode 100644
index 11e0557..0000000
--- a/LICENSE.BSD
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright (c) 2020, The Qt Company Ltd.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in
- the documentation and/or other materials provided with the
- distribution.
- * Neither the name of The Qt Company Ltd nor the names of its
- contributors may be used to endorse or promote products derived
- from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/LICENSE.FDL b/LICENSE.FDL
deleted file mode 100644
index 938bb8d..0000000
--- a/LICENSE.FDL
+++ /dev/null
@@ -1,450 +0,0 @@
- GNU Free Documentation License
- Version 1.3, 3 November 2008
-
-
- Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
- <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-0. PREAMBLE
-
-The purpose of this License is to make a manual, textbook, or other
-functional and useful document "free" in the sense of freedom: to
-assure everyone the effective freedom to copy and redistribute it,
-with or without modifying it, either commercially or noncommercially.
-Secondarily, this License preserves for the author and publisher a way
-to get credit for their work, while not being considered responsible
-for modifications made by others.
-
-This License is a kind of "copyleft", which means that derivative
-works of the document must themselves be free in the same sense. It
-complements the GNU General Public License, which is a copyleft
-license designed for free software.
-
-We have designed this License in order to use it for manuals for free
-software, because free software needs free documentation: a free
-program should come with manuals providing the same freedoms that the
-software does. But this License is not limited to software manuals;
-it can be used for any textual work, regardless of subject matter or
-whether it is published as a printed book. We recommend this License
-principally for works whose purpose is instruction or reference.
-
-
-1. APPLICABILITY AND DEFINITIONS
-
-This License applies to any manual or other work, in any medium, that
-contains a notice placed by the copyright holder saying it can be
-distributed under the terms of this License. Such a notice grants a
-world-wide, royalty-free license, unlimited in duration, to use that
-work under the conditions stated herein. The "Document", below,
-refers to any such manual or work. Any member of the public is a
-licensee, and is addressed as "you". You accept the license if you
-copy, modify or distribute the work in a way requiring permission
-under copyright law.
-
-A "Modified Version" of the Document means any work containing the
-Document or a portion of it, either copied verbatim, or with
-modifications and/or translated into another language.
-
-A "Secondary Section" is a named appendix or a front-matter section of
-the Document that deals exclusively with the relationship of the
-publishers or authors of the Document to the Document's overall
-subject (or to related matters) and contains nothing that could fall
-directly within that overall subject. (Thus, if the Document is in
-part a textbook of mathematics, a Secondary Section may not explain
-any mathematics.) The relationship could be a matter of historical
-connection with the subject or with related matters, or of legal,
-commercial, philosophical, ethical or political position regarding
-them.
-
-The "Invariant Sections" are certain Secondary Sections whose titles
-are designated, as being those of Invariant Sections, in the notice
-that says that the Document is released under this License. If a
-section does not fit the above definition of Secondary then it is not
-allowed to be designated as Invariant. The Document may contain zero
-Invariant Sections. If the Document does not identify any Invariant
-Sections then there are none.
-
-The "Cover Texts" are certain short passages of text that are listed,
-as Front-Cover Texts or Back-Cover Texts, in the notice that says that
-the Document is released under this License. A Front-Cover Text may
-be at most 5 words, and a Back-Cover Text may be at most 25 words.
-
-A "Transparent" copy of the Document means a machine-readable copy,
-represented in a format whose specification is available to the
-general public, that is suitable for revising the document
-straightforwardly with generic text editors or (for images composed of
-pixels) generic paint programs or (for drawings) some widely available
-drawing editor, and that is suitable for input to text formatters or
-for automatic translation to a variety of formats suitable for input
-to text formatters. A copy made in an otherwise Transparent file
-format whose markup, or absence of markup, has been arranged to thwart
-or discourage subsequent modification by readers is not Transparent.
-An image format is not Transparent if used for any substantial amount
-of text. A copy that is not "Transparent" is called "Opaque".
-
-Examples of suitable formats for Transparent copies include plain
-ASCII without markup, Texinfo input format, LaTeX input format, SGML
-or XML using a publicly available DTD, and standard-conforming simple
-HTML, PostScript or PDF designed for human modification. Examples of
-transparent image formats include PNG, XCF and JPG. Opaque formats
-include proprietary formats that can be read and edited only by
-proprietary word processors, SGML or XML for which the DTD and/or
-processing tools are not generally available, and the
-machine-generated HTML, PostScript or PDF produced by some word
-processors for output purposes only.
-
-The "Title Page" means, for a printed book, the title page itself,
-plus such following pages as are needed to hold, legibly, the material
-this License requires to appear in the title page. For works in
-formats which do not have any title page as such, "Title Page" means
-the text near the most prominent appearance of the work's title,
-preceding the beginning of the body of the text.
-
-The "publisher" means any person or entity that distributes copies of
-the Document to the public.
-
-A section "Entitled XYZ" means a named subunit of the Document whose
-title either is precisely XYZ or contains XYZ in parentheses following
-text that translates XYZ in another language. (Here XYZ stands for a
-specific section name mentioned below, such as "Acknowledgements",
-"Dedications", "Endorsements", or "History".) To "Preserve the Title"
-of such a section when you modify the Document means that it remains a
-section "Entitled XYZ" according to this definition.
-
-The Document may include Warranty Disclaimers next to the notice which
-states that this License applies to the Document. These Warranty
-Disclaimers are considered to be included by reference in this
-License, but only as regards disclaiming warranties: any other
-implication that these Warranty Disclaimers may have is void and has
-no effect on the meaning of this License.
-
-2. VERBATIM COPYING
-
-You may copy and distribute the Document in any medium, either
-commercially or noncommercially, provided that this License, the
-copyright notices, and the license notice saying this License applies
-to the Document are reproduced in all copies, and that you add no
-other conditions whatsoever to those of this License. You may not use
-technical measures to obstruct or control the reading or further
-copying of the copies you make or distribute. However, you may accept
-compensation in exchange for copies. If you distribute a large enough
-number of copies you must also follow the conditions in section 3.
-
-You may also lend copies, under the same conditions stated above, and
-you may publicly display copies.
-
-
-3. COPYING IN QUANTITY
-
-If you publish printed copies (or copies in media that commonly have
-printed covers) of the Document, numbering more than 100, and the
-Document's license notice requires Cover Texts, you must enclose the
-copies in covers that carry, clearly and legibly, all these Cover
-Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
-the back cover. Both covers must also clearly and legibly identify
-you as the publisher of these copies. The front cover must present
-the full title with all words of the title equally prominent and
-visible. You may add other material on the covers in addition.
-Copying with changes limited to the covers, as long as they preserve
-the title of the Document and satisfy these conditions, can be treated
-as verbatim copying in other respects.
-
-If the required texts for either cover are too voluminous to fit
-legibly, you should put the first ones listed (as many as fit
-reasonably) on the actual cover, and continue the rest onto adjacent
-pages.
-
-If you publish or distribute Opaque copies of the Document numbering
-more than 100, you must either include a machine-readable Transparent
-copy along with each Opaque copy, or state in or with each Opaque copy
-a computer-network location from which the general network-using
-public has access to download using public-standard network protocols
-a complete Transparent copy of the Document, free of added material.
-If you use the latter option, you must take reasonably prudent steps,
-when you begin distribution of Opaque copies in quantity, to ensure
-that this Transparent copy will remain thus accessible at the stated
-location until at least one year after the last time you distribute an
-Opaque copy (directly or through your agents or retailers) of that
-edition to the public.
-
-It is requested, but not required, that you contact the authors of the
-Document well before redistributing any large number of copies, to
-give them a chance to provide you with an updated version of the
-Document.
-
-
-4. MODIFICATIONS
-
-You may copy and distribute a Modified Version of the Document under
-the conditions of sections 2 and 3 above, provided that you release
-the Modified Version under precisely this License, with the Modified
-Version filling the role of the Document, thus licensing distribution
-and modification of the Modified Version to whoever possesses a copy
-of it. In addition, you must do these things in the Modified Version:
-
-A. Use in the Title Page (and on the covers, if any) a title distinct
- from that of the Document, and from those of previous versions
- (which should, if there were any, be listed in the History section
- of the Document). You may use the same title as a previous version
- if the original publisher of that version gives permission.
-B. List on the Title Page, as authors, one or more persons or entities
- responsible for authorship of the modifications in the Modified
- Version, together with at least five of the principal authors of the
- Document (all of its principal authors, if it has fewer than five),
- unless they release you from this requirement.
-C. State on the Title page the name of the publisher of the
- Modified Version, as the publisher.
-D. Preserve all the copyright notices of the Document.
-E. Add an appropriate copyright notice for your modifications
- adjacent to the other copyright notices.
-F. Include, immediately after the copyright notices, a license notice
- giving the public permission to use the Modified Version under the
- terms of this License, in the form shown in the Addendum below.
-G. Preserve in that license notice the full lists of Invariant Sections
- and required Cover Texts given in the Document's license notice.
-H. Include an unaltered copy of this License.
-I. Preserve the section Entitled "History", Preserve its Title, and add
- to it an item stating at least the title, year, new authors, and
- publisher of the Modified Version as given on the Title Page. If
- there is no section Entitled "History" in the Document, create one
- stating the title, year, authors, and publisher of the Document as
- given on its Title Page, then add an item describing the Modified
- Version as stated in the previous sentence.
-J. Preserve the network location, if any, given in the Document for
- public access to a Transparent copy of the Document, and likewise
- the network locations given in the Document for previous versions
- it was based on. These may be placed in the "History" section.
- You may omit a network location for a work that was published at
- least four years before the Document itself, or if the original
- publisher of the version it refers to gives permission.
-K. For any section Entitled "Acknowledgements" or "Dedications",
- Preserve the Title of the section, and preserve in the section all
- the substance and tone of each of the contributor acknowledgements
- and/or dedications given therein.
-L. Preserve all the Invariant Sections of the Document,
- unaltered in their text and in their titles. Section numbers
- or the equivalent are not considered part of the section titles.
-M. Delete any section Entitled "Endorsements". Such a section
- may not be included in the Modified Version.
-N. Do not retitle any existing section to be Entitled "Endorsements"
- or to conflict in title with any Invariant Section.
-O. Preserve any Warranty Disclaimers.
-
-If the Modified Version includes new front-matter sections or
-appendices that qualify as Secondary Sections and contain no material
-copied from the Document, you may at your option designate some or all
-of these sections as invariant. To do this, add their titles to the
-list of Invariant Sections in the Modified Version's license notice.
-These titles must be distinct from any other section titles.
-
-You may add a section Entitled "Endorsements", provided it contains
-nothing but endorsements of your Modified Version by various
-parties--for example, statements of peer review or that the text has
-been approved by an organization as the authoritative definition of a
-standard.
-
-You may add a passage of up to five words as a Front-Cover Text, and a
-passage of up to 25 words as a Back-Cover Text, to the end of the list
-of Cover Texts in the Modified Version. Only one passage of
-Front-Cover Text and one of Back-Cover Text may be added by (or
-through arrangements made by) any one entity. If the Document already
-includes a cover text for the same cover, previously added by you or
-by arrangement made by the same entity you are acting on behalf of,
-you may not add another; but you may replace the old one, on explicit
-permission from the previous publisher that added the old one.
-
-The author(s) and publisher(s) of the Document do not by this License
-give permission to use their names for publicity for or to assert or
-imply endorsement of any Modified Version.
-
-
-5. COMBINING DOCUMENTS
-
-You may combine the Document with other documents released under this
-License, under the terms defined in section 4 above for modified
-versions, provided that you include in the combination all of the
-Invariant Sections of all of the original documents, unmodified, and
-list them all as Invariant Sections of your combined work in its
-license notice, and that you preserve all their Warranty Disclaimers.
-
-The combined work need only contain one copy of this License, and
-multiple identical Invariant Sections may be replaced with a single
-copy. If there are multiple Invariant Sections with the same name but
-different contents, make the title of each such section unique by
-adding at the end of it, in parentheses, the name of the original
-author or publisher of that section if known, or else a unique number.
-Make the same adjustment to the section titles in the list of
-Invariant Sections in the license notice of the combined work.
-
-In the combination, you must combine any sections Entitled "History"
-in the various original documents, forming one section Entitled
-"History"; likewise combine any sections Entitled "Acknowledgements",
-and any sections Entitled "Dedications". You must delete all sections
-Entitled "Endorsements".
-
-
-6. COLLECTIONS OF DOCUMENTS
-
-You may make a collection consisting of the Document and other
-documents released under this License, and replace the individual
-copies of this License in the various documents with a single copy
-that is included in the collection, provided that you follow the rules
-of this License for verbatim copying of each of the documents in all
-other respects.
-
-You may extract a single document from such a collection, and
-distribute it individually under this License, provided you insert a
-copy of this License into the extracted document, and follow this
-License in all other respects regarding verbatim copying of that
-document.
-
-
-7. AGGREGATION WITH INDEPENDENT WORKS
-
-A compilation of the Document or its derivatives with other separate
-and independent documents or works, in or on a volume of a storage or
-distribution medium, is called an "aggregate" if the copyright
-resulting from the compilation is not used to limit the legal rights
-of the compilation's users beyond what the individual works permit.
-When the Document is included in an aggregate, this License does not
-apply to the other works in the aggregate which are not themselves
-derivative works of the Document.
-
-If the Cover Text requirement of section 3 is applicable to these
-copies of the Document, then if the Document is less than one half of
-the entire aggregate, the Document's Cover Texts may be placed on
-covers that bracket the Document within the aggregate, or the
-electronic equivalent of covers if the Document is in electronic form.
-Otherwise they must appear on printed covers that bracket the whole
-aggregate.
-
-
-8. TRANSLATION
-
-Translation is considered a kind of modification, so you may
-distribute translations of the Document under the terms of section 4.
-Replacing Invariant Sections with translations requires special
-permission from their copyright holders, but you may include
-translations of some or all Invariant Sections in addition to the
-original versions of these Invariant Sections. You may include a
-translation of this License, and all the license notices in the
-Document, and any Warranty Disclaimers, provided that you also include
-the original English version of this License and the original versions
-of those notices and disclaimers. In case of a disagreement between
-the translation and the original version of this License or a notice
-or disclaimer, the original version will prevail.
-
-If a section in the Document is Entitled "Acknowledgements",
-"Dedications", or "History", the requirement (section 4) to Preserve
-its Title (section 1) will typically require changing the actual
-title.
-
-
-9. TERMINATION
-
-You may not copy, modify, sublicense, or distribute the Document
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense, or distribute it is void, and
-will automatically terminate your rights under this License.
-
-However, if you cease all violation of this License, then your license
-from a particular copyright holder is reinstated (a) provisionally,
-unless and until the copyright holder explicitly and finally
-terminates your license, and (b) permanently, if the copyright holder
-fails to notify you of the violation by some reasonable means prior to
-60 days after the cessation.
-
-Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
-Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, receipt of a copy of some or all of the same material does
-not give you any rights to use it.
-
-
-10. FUTURE REVISIONS OF THIS LICENSE
-
-The Free Software Foundation may publish new, revised versions of the
-GNU Free Documentation License from time to time. Such new versions
-will be similar in spirit to the present version, but may differ in
-detail to address new problems or concerns. See
-http://www.gnu.org/copyleft/.
-
-Each version of the License is given a distinguishing version number.
-If the Document specifies that a particular numbered version of this
-License "or any later version" applies to it, you have the option of
-following the terms and conditions either of that specified version or
-of any later version that has been published (not as a draft) by the
-Free Software Foundation. If the Document does not specify a version
-number of this License, you may choose any version ever published (not
-as a draft) by the Free Software Foundation. If the Document
-specifies that a proxy can decide which future versions of this
-License can be used, that proxy's public statement of acceptance of a
-version permanently authorizes you to choose that version for the
-Document.
-
-11. RELICENSING
-
-"Massive Multiauthor Collaboration Site" (or "MMC Site") means any
-World Wide Web server that publishes copyrightable works and also
-provides prominent facilities for anybody to edit those works. A
-public wiki that anybody can edit is an example of such a server. A
-"Massive Multiauthor Collaboration" (or "MMC") contained in the site
-means any set of copyrightable works thus published on the MMC site.
-
-"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
-license published by Creative Commons Corporation, a not-for-profit
-corporation with a principal place of business in San Francisco,
-California, as well as future copyleft versions of that license
-published by that same organization.
-
-"Incorporate" means to publish or republish a Document, in whole or in
-part, as part of another Document.
-
-An MMC is "eligible for relicensing" if it is licensed under this
-License, and if all works that were first published under this License
-somewhere other than this MMC, and subsequently incorporated in whole or
-in part into the MMC, (1) had no cover texts or invariant sections, and
-(2) were thus incorporated prior to November 1, 2008.
-
-The operator of an MMC Site may republish an MMC contained in the site
-under CC-BY-SA on the same site at any time before August 1, 2009,
-provided the MMC is eligible for relicensing.
-
-
-ADDENDUM: How to use this License for your documents
-
-To use this License in a document you have written, include a copy of
-the License in the document and put the following copyright and
-license notices just after the title page:
-
- Copyright (c) YEAR YOUR NAME.
- Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.3
- or any later version published by the Free Software Foundation;
- with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
- A copy of the license is included in the section entitled "GNU
- Free Documentation License".
-
-If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
-replace the "with...Texts." line with this:
-
- with the Invariant Sections being LIST THEIR TITLES, with the
- Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
-
-If you have Invariant Sections without Cover Texts, or some other
-combination of the three, merge those two alternatives to suit the
-situation.
-
-If your document contains nontrivial examples of program code, we
-recommend releasing these examples in parallel under your choice of
-free software license, such as the GNU General Public License,
-to permit their use in free software.
diff --git a/LICENSE.GPL3-EXCEPT b/LICENSE.GPL3-EXCEPT
deleted file mode 100644
index b1cb1be..0000000
--- a/LICENSE.GPL3-EXCEPT
+++ /dev/null
@@ -1,704 +0,0 @@
-This is the GNU General Public License version 3, annotated with The
-Qt Company GPL Exception 1.0:
-
--------------------------------------------------------------------------
-
-The Qt Company GPL Exception 1.0
-
-Exception 1:
-
-As a special exception you may create a larger work which contains the
-output of this application and distribute that work under terms of your
-choice, so long as the work is not otherwise derived from or based on
-this application and so long as the work does not in itself generate
-output that contains the output from this application in its original
-or modified form.
-
-Exception 2:
-
-As a special exception, you have permission to combine this application
-with Plugins licensed under the terms of your choice, to produce an
-executable, and to copy and distribute the resulting executable under
-the terms of your choice. However, the executable must be accompanied
-by a prominent notice offering all users of the executable the entire
-source code to this application, excluding the source code of the
-independent modules, but including any changes you have made to this
-application, under the terms of this license.
-
-
--------------------------------------------------------------------------
-
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- <program> Copyright (C) <year> <name of author>
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a02e3ce
--- /dev/null
+++ b/README.md
@@ -0,0 +1,28 @@
+# QtGraphicalEffects
+
+**The QtGraphicalEffects module has been deprecated and is no longer part of Qt.**
+
+The functionality of the module has been partially incorporated into the Qt5Compat module.
+
+The documentation for those parts can be found at
+[Qt 5 Compatibility APIs: Graphical Effects](https://doc.qt.io/qt-6/qtgraphicaleffects5-index.html)
+
+## Working on Qt 5
+
+To work on patches for the Qt 5 series, check out a local branch of the relevant Qt version, e.g.:
+
+```bash
+$ git checkout 5.15
+Branch '5.15' set up to track remote branch '5.15' from 'origin' by rebasing.
+Switched to a new branch '5.15'
+```
+
+## Going back in time
+
+To inspect the code in the `dev` branch prior to its removal, follow these steps:
+
+```bash
+$ git checkout -b my-dev dev~1
+Switched to a new branch 'my-dev'
+```
+
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
deleted file mode 100644
index 16d158c..0000000
--- a/coin/module_config.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-version: 2
-accept_configuration:
- condition: property
- property: features
- not_contains_value: Disable
-
-instructions:
- Build:
- - !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml"
-
- Test:
- - !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml"
diff --git a/dependencies.yaml b/dependencies.yaml
deleted file mode 100644
index b6f7ea2..0000000
--- a/dependencies.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-dependencies:
- ../qtdeclarative:
- ref: 861d93965e0dbc2c088e83f8a6093a639373a02c
- required: true
diff --git a/dist/changes-5.0.1 b/dist/changes-5.0.1
deleted file mode 100644
index 5fea7ba..0000000
--- a/dist/changes-5.0.1
+++ /dev/null
@@ -1,22 +0,0 @@
-Qt 5.0.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.0.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
- http://qt-project.org/doc/qt-5.0/
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- http://bugreports.qt-project.org/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-
-****************************************************************************
-* General *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.0.2 b/dist/changes-5.0.2
deleted file mode 100644
index 708a382..0000000
--- a/dist/changes-5.0.2
+++ /dev/null
@@ -1,22 +0,0 @@
-Qt 5.0.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.0.0 and 5.0.1.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
- http://qt-project.org/doc/qt-5.0/
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- http://bugreports.qt-project.org/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-
-****************************************************************************
-* General *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.1.0 b/dist/changes-5.1.0
deleted file mode 100644
index 505b0cc..0000000
--- a/dist/changes-5.1.0
+++ /dev/null
@@ -1,22 +0,0 @@
-Qt 5.1 introduces many new features and improvements as well as bugfixes
-over the 5.0.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
- http://qt-project.org/doc/qt-5.1
-
-The Qt version 5.1 series is binary compatible with the 5.0.x series.
-Applications compiled for 5.0 will continue to run with 5.1.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- http://bugreports.qt-project.org/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* General *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.1.1 b/dist/changes-5.1.1
deleted file mode 100644
index e233af4..0000000
--- a/dist/changes-5.1.1
+++ /dev/null
@@ -1,25 +0,0 @@
-Qt 5.1.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.1.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
- http://qt-project.org/doc/qt-5.1/
-
-The Qt version 5.1 series is binary compatible with the 5.0.x series.
-Applications compiled for 5.0 will continue to run with 5.1.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- http://bugreports.qt-project.org/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-
-****************************************************************************
-* General *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.10.0 b/dist/changes-5.10.0
deleted file mode 100644
index 2f850c4..0000000
--- a/dist/changes-5.10.0
+++ /dev/null
@@ -1,28 +0,0 @@
-Qt 5.10 introduces many new features and improvements as well as bugfixes
-over the 5.9.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.10 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.9 will continue to run with 5.10.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.10.0 Changes *
-****************************************************************************
-
- - This release contains only minor code improvements.
-
-Qt Graphical Effects
---------------------
-
- - [QTBUG-42107] Added QtGraphicalEffects support for OpenGL Core profile
- contexts.
diff --git a/dist/changes-5.10.1 b/dist/changes-5.10.1
deleted file mode 100644
index 695c4e3..0000000
--- a/dist/changes-5.10.1
+++ /dev/null
@@ -1,26 +0,0 @@
-Qt 5.10.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.10.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.10 series is binary compatible with the 5.9.x series.
-Applications compiled for 5.9 will continue to run with 5.10.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-This release contains all fixes included in the Qt 5.9.4 release.
-
-****************************************************************************
-* Qt 5.10.1 Changes *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.11.0 b/dist/changes-5.11.0
deleted file mode 100644
index 162ab57..0000000
--- a/dist/changes-5.11.0
+++ /dev/null
@@ -1,22 +0,0 @@
-Qt 5.11 introduces many new features and improvements as well as bugfixes
-over the 5.10.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.11 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.10 will continue to run with 5.11.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.11.0 Changes *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.11.1 b/dist/changes-5.11.1
deleted file mode 100644
index 030ea3f..0000000
--- a/dist/changes-5.11.1
+++ /dev/null
@@ -1,24 +0,0 @@
-Qt 5.11.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.11.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.11 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.10 will continue to run with 5.11.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.11.1 Changes *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.11.2 b/dist/changes-5.11.2
deleted file mode 100644
index 8efdf5e..0000000
--- a/dist/changes-5.11.2
+++ /dev/null
@@ -1,24 +0,0 @@
-Qt 5.11.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.11.0 through 5.11.1.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.11 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.10 will continue to run with 5.11.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.11.2 Changes *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.11.3 b/dist/changes-5.11.3
deleted file mode 100644
index f71fa34..0000000
--- a/dist/changes-5.11.3
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.11.3 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.11.0 through 5.11.2.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.11 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.10 will continue to run with 5.11.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.12.0 b/dist/changes-5.12.0
deleted file mode 100644
index 0ca4bb5..0000000
--- a/dist/changes-5.12.0
+++ /dev/null
@@ -1,27 +0,0 @@
-Qt 5.12 introduces many new features and improvements as well as bugfixes
-over the 5.11.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt Graphical Effects *
-****************************************************************************
-
- - In Qt 5.12 and newer versions, this module is available with the same
- minor version as the Qt release minor version number. For example import
- QtGraphicalEffects 1.12 will work in Qt 5.12, even though there has been
- no API change, and the maximum possible import version will
- automatically increment in future Qt versions. This is intended to
- reduce confusion.
diff --git a/dist/changes-5.12.1 b/dist/changes-5.12.1
deleted file mode 100644
index 1cb4dd7..0000000
--- a/dist/changes-5.12.1
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.12.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.12.2 b/dist/changes-5.12.2
deleted file mode 100644
index 0c8bd85..0000000
--- a/dist/changes-5.12.2
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.12.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0 through 5.12.1.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.12.3 b/dist/changes-5.12.3
deleted file mode 100644
index 8803320..0000000
--- a/dist/changes-5.12.3
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.12.3 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0 through 5.12.2.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.12.4 b/dist/changes-5.12.4
deleted file mode 100644
index a285cd8..0000000
--- a/dist/changes-5.12.4
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.12.4 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0 through 5.12.3.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.12.5 b/dist/changes-5.12.5
deleted file mode 100644
index e8be931..0000000
--- a/dist/changes-5.12.5
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.12.5 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0 through 5.12.4.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.13.0 b/dist/changes-5.13.0
deleted file mode 100644
index ebb4be1..0000000
--- a/dist/changes-5.13.0
+++ /dev/null
@@ -1,18 +0,0 @@
-Qt 5.13 introduces many new features and improvements as well as bugfixes
-over the 5.12.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.13 series is binary compatible with the 5.12.x series.
-Applications compiled for 5.12 will continue to run with 5.13.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.13.1 b/dist/changes-5.13.1
deleted file mode 100644
index 57ebdbe..0000000
--- a/dist/changes-5.13.1
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.13.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.13.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.13 series is binary compatible with the 5.12.x series.
-Applications compiled for 5.12 will continue to run with 5.13.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.13.2 b/dist/changes-5.13.2
deleted file mode 100644
index e3bb833..0000000
--- a/dist/changes-5.13.2
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.13.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.13.0 through 5.13.1.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.13 series is binary compatible with the 5.12.x series.
-Applications compiled for 5.12 will continue to run with 5.13.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.14.0 b/dist/changes-5.14.0
deleted file mode 100644
index 29a2c83..0000000
--- a/dist/changes-5.14.0
+++ /dev/null
@@ -1,18 +0,0 @@
-Qt 5.14 introduces many new features and improvements as well as bugfixes
-over the 5.13.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.14 series is binary compatible with the 5.13.x series.
-Applications compiled for 5.13 will continue to run with 5.14.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.14.1 b/dist/changes-5.14.1
deleted file mode 100644
index d008638..0000000
--- a/dist/changes-5.14.1
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.14.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.14.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.14 series is binary compatible with the 5.13.x series.
-Applications compiled for 5.13 will continue to run with 5.14.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.14.2 b/dist/changes-5.14.2
deleted file mode 100644
index 68a0051..0000000
--- a/dist/changes-5.14.2
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.14.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.14.0 through 5.14.1.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.14 series is binary compatible with the 5.13.x series.
-Applications compiled for 5.13 will continue to run with 5.14.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.15.0 b/dist/changes-5.15.0
deleted file mode 100644
index 40076ce..0000000
--- a/dist/changes-5.15.0
+++ /dev/null
@@ -1,18 +0,0 @@
-Qt 5.15 introduces many new features and improvements as well as bugfixes
-over the 5.14.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.15 series is binary compatible with the 5.14.x series.
-Applications compiled for 5.14 will continue to run with 5.15.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.15.1 b/dist/changes-5.15.1
deleted file mode 100644
index dac4768..0000000
--- a/dist/changes-5.15.1
+++ /dev/null
@@ -1,25 +0,0 @@
-Qt 5.15.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.15.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.15 series is binary compatible with the 5.14.x series.
-Applications compiled for 5.14 will continue to run with 5.15.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Gaussian Blur *
-****************************************************************************
-
- - [QTBUG-82830] Fixed an issue where the effect would be broken or
- incorrect if using a display with a non-integer device pixel ratio.
diff --git a/dist/changes-5.6.0 b/dist/changes-5.6.0
deleted file mode 100644
index 276c1f6..0000000
--- a/dist/changes-5.6.0
+++ /dev/null
@@ -1,55 +0,0 @@
-Qt 5.6 introduces many new features and improvements as well as bugfixes
-over the 5.6.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
- http://doc.qt.io/qt-5.6
-
-The Qt version 5.6 series is binary compatible with the 5.5.x series.
-Applications compiled for 5.5 will continue to run with 5.6.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- http://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* General
-****************************************************************************
-
- - Gaussian Blur has a new implementation. Faster for smaller
- kernels, similar for larger kernels but allows arbitrarily large
- kernels. The fast version will support at least 15x15 kernels on
- OpenGL ES and 59x59 kernels on Desktop GL. GaussianBlur.deviation is
- now a potentially costly parameter to change and it should not be
- animated.
-
- - When defining blur based effects, like Glow, DropShadow and GaussianBlur,
- prefer to specify 'samples' to be an odd number and let radius be the default.
- This gives the best effect. Animate the blur by animating 'radius' from 0 to
- floor(samples/2). Using a 'radius' which is higher than samples/2 will
- result in artifacts.
-
- - The internal SourceProxy class has been moved from QML/JS to C++ to
- allow better control over when the proxy is used. As a result, the
- graphical effect library now has a c++ based plugin in addition to
- QML/JS source files.
-
- - The 'fast' property of various blur-based implementations no longer has
- any effect. The blurring algorithm used is the same for all.
-
- - 'DropShadow::transparentBorder', 'GaussianBlur::transparentBorder' and
- 'Glow::transparentBorder' have been changed to be true by default.
-
- - 'MaskedBlur::transparentBorder' has no effect as the mask will anyway
- have alpha==0 outside the mask source's pixels.
-
- - 'GaussianBlur::samples', 'DropShadow::samples', 'Glow::samples' and
- 'MaskedBlur::samples' are 9 by default.
-
- - When applying an effect to Item::layer.effect, the effect will now update
- the layer properties to make the effect work, such as setting
- 'Layer::smooth' to 'true' and changing 'Layer::sourceRect' to take
- 'transparentBorder' into account.
diff --git a/dist/changes-5.6.3 b/dist/changes-5.6.3
deleted file mode 100644
index 285d4a8..0000000
--- a/dist/changes-5.6.3
+++ /dev/null
@@ -1,12 +0,0 @@
-Qt 5.6.3 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.6.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
- http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.6 series is binary compatible with the 5.5.x series.
-Applications compiled for 5.5 will continue to run with 5.6.
-
-There were no changes in this module since previous release.
diff --git a/dist/changes-5.7.0 b/dist/changes-5.7.0
deleted file mode 100644
index 1c307ce..0000000
--- a/dist/changes-5.7.0
+++ /dev/null
@@ -1,37 +0,0 @@
-Qt 5.7 introduces many new features and improvements as well as bugfixes
-over the 5.6.x series. Also, there is a change in the licensing terms.
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
- https://doc.qt.io
-
-The Qt version 5.7 series is binary compatible with the 5.6.x series.
-Applications compiled for 5.6 will continue to run with 5.7.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- https://bugreports.qt.io
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Important License Changes *
-****************************************************************************
-
- This module is no longer available under LGPLv2.1. The libraries are
- now available under the following licenses:
- * Commercial License
- * GNU General Public License v2.0 (LICENSE.GPL2) and later
- * GNU Lesser General Public License v3.0 (LICENSE.LGPL3)
-
- The tools are now available under the following licenses:
- * Commercial License
- * GNU General Public License 3.0 (LICENSE.GPL3) with exceptions
- described in The Qt Company GPL Exception 1.0 (LICENSE.GPL3-EXCEPT)
-
-****************************************************************************
-* General *
-****************************************************************************
-- Enabled using the module in a static build.
diff --git a/dist/changes-5.8.0 b/dist/changes-5.8.0
deleted file mode 100644
index 30c856e..0000000
--- a/dist/changes-5.8.0
+++ /dev/null
@@ -1,23 +0,0 @@
-Qt 5.8 introduces many new features and improvements as well as bugfixes
-over the 5.7.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
- http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.8 series is binary compatible with the 5.7.x series.
-Applications compiled for 5.7 will continue to run with 5.8.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-
-****************************************************************************
-* General *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.9.0 b/dist/changes-5.9.0
deleted file mode 100644
index 7b29476..0000000
--- a/dist/changes-5.9.0
+++ /dev/null
@@ -1,22 +0,0 @@
-Qt 5.9 introduces many new features and improvements as well as bugfixes
-over the 5.8.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* General *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.9.1 b/dist/changes-5.9.1
deleted file mode 100644
index e0a6a4b..0000000
--- a/dist/changes-5.9.1
+++ /dev/null
@@ -1,24 +0,0 @@
-Qt 5.9.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Library *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.9.2 b/dist/changes-5.9.2
deleted file mode 100644
index 1671a60..0000000
--- a/dist/changes-5.9.2
+++ /dev/null
@@ -1,25 +0,0 @@
-Qt 5.9.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.9.2 Changes *
-****************************************************************************
-
-- [QTBUG-57205] Ensure correct detection of dependencies for GaussianBlur
- in qmlimportscanner.
diff --git a/dist/changes-5.9.3 b/dist/changes-5.9.3
deleted file mode 100644
index bb5db63..0000000
--- a/dist/changes-5.9.3
+++ /dev/null
@@ -1,24 +0,0 @@
-Qt 5.9.3 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.9.3 Changes *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.9.4 b/dist/changes-5.9.4
deleted file mode 100644
index 1014937..0000000
--- a/dist/changes-5.9.4
+++ /dev/null
@@ -1,25 +0,0 @@
-Qt 5.9.4 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.9.4 Changes *
-****************************************************************************
-
- - This release does not contain any changes to this module.
-
diff --git a/dist/changes-5.9.5 b/dist/changes-5.9.5
deleted file mode 100644
index 8df339e..0000000
--- a/dist/changes-5.9.5
+++ /dev/null
@@ -1,24 +0,0 @@
-Qt 5.9.5 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.9 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.9.5 Changes *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.9.6 b/dist/changes-5.9.6
deleted file mode 100644
index f0179a5..0000000
--- a/dist/changes-5.9.6
+++ /dev/null
@@ -1,24 +0,0 @@
-Qt 5.9.6 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0 through 5.9.5.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.9.6 Changes *
-****************************************************************************
-
- - This release contains only minor code improvements.
diff --git a/qtgraphicaleffects.pro b/qtgraphicaleffects.pro
deleted file mode 100644
index 960aa69..0000000
--- a/qtgraphicaleffects.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-requires(qtHaveModule(quick))
-
-qtHaveModule(quick) {
- QT_FOR_CONFIG += quick-private
- requires(qtConfig(quick-shadereffect))
-}
-
-load(qt_parts)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
deleted file mode 100644
index b344062..0000000
--- a/src/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Generated from src.pro.
-
-add_subdirectory(effects)
diff --git a/src/effects/BrightnessContrast.qml b/src/effects/BrightnessContrast.qml
deleted file mode 100644
index c2820f6..0000000
--- a/src/effects/BrightnessContrast.qml
+++ /dev/null
@@ -1,203 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype BrightnessContrast
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Adjusts brightness and contrast.
-
- This effect adjusts the source item colors.
- Brightness adjustment changes the perceived luminance of the source item.
- Contrast adjustment increases or decreases the color
- and brightness variations.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image BrightnessContrast_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet BrightnessContrast-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines how much the source brightness is increased or
- decreased.
-
- The value ranges from -1.0 to 1.0. By default, the property is set to \c
- 0.0 (no change).
-
- \table
- \header
- \li Output examples with different brightness values
- \li
- \li
- \row
- \li \image BrightnessContrast_brightness1.png
- \li \image BrightnessContrast_brightness2.png
- \li \image BrightnessContrast_brightness3.png
- \row
- \li \b { brightness: -0.25 }
- \li \b { brightness: 0 }
- \li \b { brightness: 0.5 }
- \row
- \li \l contrast: 0
- \li \l contrast: 0
- \li \l contrast: 0
- \endtable
-
- */
- property real brightness: 0.0
-
- /*!
- This property defines how much the source contrast is increased or
- decreased. The decrease of the contrast is linear, but the increase is
- applied with a non-linear curve to allow very high contrast adjustment at
- the high end of the value range.
-
- \table
- \header
- \li Contrast adjustment curve
- \row
- \li \image BrightnessContrast_contrast_graph.png
- \endtable
-
- The value ranges from -1.0 to 1.0. By default, the property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different contrast values
- \li
- \li
- \row
- \li \image BrightnessContrast_contrast1.png
- \li \image BrightnessContrast_contrast2.png
- \li \image BrightnessContrast_contrast3.png
- \row
- \li \b { contrast: -0.5 }
- \li \b { contrast: 0 }
- \li \b { contrast: 0.5 }
- \row
- \li \l brightness: 0
- \li \l brightness: 0
- \li \l brightness: 0
- \endtable
-
- */
- property real contrast: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property real brightness: rootItem.brightness
- property real contrast: rootItem.contrast
-
- anchors.fill: parent
- blending: !rootItem.cached
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/brightnesscontrast.frag.qsb"
- }
-}
diff --git a/src/effects/CMakeLists.txt b/src/effects/CMakeLists.txt
deleted file mode 100644
index cf66a9c..0000000
--- a/src/effects/CMakeLists.txt
+++ /dev/null
@@ -1,143 +0,0 @@
-# Generated from effects.pro.
-
-#####################################################################
-## qtgraphicaleffectsplugin Plugin:
-#####################################################################
-
-qt_internal_add_qml_module(qtgraphicaleffectsplugin
- URI "QtGraphicalEffects"
- VERSION "1.${CMAKE_PROJECT_VERSION_MINOR}"
- DESIGNER_SUPPORTED
- CLASSNAME QtGraphicalEffectsPlugin
- DEPENDENCIES
- QtGraphicalEffects/private/1.0
- QtQuick.Window/2.1
- SOURCES
- plugin.cpp
- PUBLIC_LIBRARIES
- Qt::Qml
- Qt::Quick
-)
-
-# Resources:
-set(qtgraphicaleffectsshaders_resource_files
- "shaders_ng/brightnesscontrast.frag.qsb"
- "shaders_ng/colorize.frag.qsb"
- "shaders_ng/coloroverlay.frag.qsb"
- "shaders_ng/conicalgradient_mask.frag.qsb"
- "shaders_ng/conicalgradient_nomask.frag.qsb"
- "shaders_ng/desaturate.frag.qsb"
- "shaders_ng/displace.frag.qsb"
- "shaders_ng/fastblur.frag.qsb"
- "shaders_ng/fastblur_internal.frag.qsb"
- "shaders_ng/fastblur_internal.vert.qsb"
- "shaders_ng/fastglow.frag.qsb"
- "shaders_ng/gammaadjust.frag.qsb"
- "shaders_ng/huesaturation.frag.qsb"
- "shaders_ng/leveladjust.frag.qsb"
- "shaders_ng/lineargradient.vert.qsb"
- "shaders_ng/lineargradient_mask.frag.qsb"
- "shaders_ng/lineargradient_nomask.frag.qsb"
- "shaders_ng/opacitymask.frag.qsb"
- "shaders_ng/opacitymask_invert.frag.qsb"
- "shaders_ng/radialgradient.vert.qsb"
- "shaders_ng/radialgradient_mask.frag.qsb"
- "shaders_ng/radialgradient_nomask.frag.qsb"
- "shaders_ng/rectangularglow.frag.qsb"
- "shaders_ng/thresholdmask.frag.qsb"
-)
-
-qt_internal_add_resource(qtgraphicaleffectsplugin "qtgraphicaleffectsshaders"
- PREFIX
- "/qt-project.org/imports/QtGraphicalEffects"
- FILES
- ${qtgraphicaleffectsshaders_resource_files}
-)
-
-
-#### Keys ignored in scope 2:.:.:effects_plugin.pro:<TRUE>:
-# CXX_MODULE = "qml"
-# IMPORT_VERSION = "1.$$QT_MINOR_VERSION"
-# QML_FILES = "BrightnessContrast.qml" "ColorOverlay.qml" "Colorize.qml" "ConicalGradient.qml" "Desaturate.qml" "Displace.qml" "DropShadow.qml" "FastBlur.qml" "GammaAdjust.qml" "Glow.qml" "HueSaturation.qml" "LevelAdjust.qml" "LinearGradient.qml" "OpacityMask.qml" "RadialGradient.qml" "RectangularGlow.qml" "ThresholdMask.qml"
-# TARGETPATH = "QtGraphicalEffects"
-
-set(qml_files
- "BrightnessContrast.qml"
- "ColorOverlay.qml"
- "Colorize.qml"
- "ConicalGradient.qml"
- "Desaturate.qml"
- "Displace.qml"
- "DropShadow.qml"
- "FastBlur.qml"
- "GammaAdjust.qml"
- "Glow.qml"
- "HueSaturation.qml"
- "LevelAdjust.qml"
- "LinearGradient.qml"
- "OpacityMask.qml"
- "RadialGradient.qml"
- "RectangularGlow.qml"
- "ThresholdMask.qml"
-)
-set_source_files_properties(BrightnessContrast.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(ColorOverlay.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(Colorize.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(ConicalGradient.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(Desaturate.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(Displace.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(DropShadow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(FastBlur.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GammaAdjust.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(Glow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(HueSaturation.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(LevelAdjust.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(LinearGradient.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(OpacityMask.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(RadialGradient.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(RectangularGlow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(ThresholdMask.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-
-qt6_target_qml_files(qtgraphicaleffectsplugin
- FILES
- ${qml_files}
-)
-qt_internal_add_docs(qtgraphicaleffectsplugin
- doc/qtgraphicaleffects.qdocconf
-)
-
-add_subdirectory(private)
diff --git a/src/effects/ColorOverlay.qml b/src/effects/ColorOverlay.qml
deleted file mode 100644
index 66bd766..0000000
--- a/src/effects/ColorOverlay.qml
+++ /dev/null
@@ -1,157 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype ColorOverlay
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Alters the colors of the source item by applying an overlay color.
-
- The effect is similar to what happens when a colorized glass is put on top
- of a grayscale image. The color for the overlay is given in the RGBA format.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_butterfly.png
- \li \image ColorOverlay_butterfly.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet ColorOverlay-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the RGBA color value which is used to colorize the
- source.
-
- By default, the property is set to \c "transparent".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image ColorOverlay_color1.png
- \li \image ColorOverlay_color2.png
- \li \image ColorOverlay_color3.png
- \row
- \li \b { color: #80ff0000 }
- \li \b { color: #8000ff00 }
- \li \b { color: #800000ff }
- \endtable
-
- */
- property color color: "transparent"
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property color color: rootItem.color
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/coloroverlay.frag.qsb"
- }
-}
diff --git a/src/effects/Colorize.qml b/src/effects/Colorize.qml
deleted file mode 100644
index fa99703..0000000
--- a/src/effects/Colorize.qml
+++ /dev/null
@@ -1,247 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype Colorize
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Sets the color in the HSL color space.
-
- The effect is similar to what happens when a colorized glass is put on top
- of a grayscale image. Colorize uses the hue, saturation, and lightness (HSL)
- color space. You can specify a desired value for each property. You can
- shift all HSL values with the
- \l{QtGraphicalEffects::HueSaturation}{HueSaturation} effect.
-
- Alternatively, you can use the
- \l{QtGraphicalEffects::ColorOverlay}{ColorOverlay} effect to colorize the
- source item in the RGBA color space.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image Colorize_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet Colorize-example.qml example
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the hue value which is used to colorize the
- source.
-
- The value ranges from 0.0 to 1.0. By default, the property is set to \c
- 0.0, which produces a slightly red color.
-
- \table
- \header
- \li Allowed hue values
- \row
- \li \image Colorize_hue_scale.png
- \endtable
-
- \table
- \header
- \li Output examples with different hue values
- \li
- \li
- \row
- \li \image Colorize_hue1.png
- \li \image Colorize_hue2.png
- \li \image Colorize_hue3.png
- \row
- \li \b { hue: 0.2 }
- \li \b { hue: 0.5 }
- \li \b { hue: 0.8 }
- \row
- \li \l saturation: 1
- \li \l saturation: 1
- \li \l saturation: 1
- \row
- \li \l lightness: 0
- \li \l lightness: 0
- \li \l lightness: 0
- \endtable
- */
- property real hue: 0.0
-
- /*!
- This property defines the saturation value which is used to colorize the
- source.
-
- The value ranges from 0.0 (desaturated) to 1.0 (saturated). By default,
- the property is set to \c 1.0 (saturated).
-
- \table
- \header
- \li Output examples with different saturation values
- \li
- \li
- \row
- \li \image Colorize_saturation1.png
- \li \image Colorize_saturation2.png
- \li \image Colorize_saturation3.png
- \row
- \li \b { saturation: 0 }
- \li \b { saturation: 0.5 }
- \li \b { saturation: 1 }
- \row
- \li \l hue: 0
- \li \l hue: 0
- \li \l hue: 0
- \row
- \li \l lightness: 0
- \li \l lightness: 0
- \li \l lightness: 0
- \endtable
- */
- property real saturation: 1.0
-
- /*!
- This property defines how much the source lightness value is increased
- or decreased.
-
- Unlike hue and saturation properties, lightness does not set the used
- value, but it shifts the existing source pixel lightness value.
-
- The value ranges from -1.0 (decreased) to 1.0 (increased). By default,
- the property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different lightness values
- \li
- \li
- \row
- \li \image Colorize_lightness1.png
- \li \image Colorize_lightness2.png
- \li \image Colorize_lightness3.png
- \row
- \li \b { lightness: -0.75 }
- \li \b { lightness: 0 }
- \li \b { lightness: 0.75 }
- \row
- \li \l hue: 0
- \li \l hue: 0
- \li \l hue: 0
- \row
- \li \l saturation: 1
- \li \l saturation: 1
- \li \l saturation: 1
- \endtable
- */
- property real lightness: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property real hue: rootItem.hue
- property real saturation: rootItem.saturation
- property real lightness: rootItem.lightness
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/colorize.frag.qsb"
-
- }
-}
diff --git a/src/effects/ConicalGradient.qml b/src/effects/ConicalGradient.qml
deleted file mode 100644
index ef5468b..0000000
--- a/src/effects/ConicalGradient.qml
+++ /dev/null
@@ -1,342 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype ConicalGradient
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-gradient
- \brief Draws a conical gradient.
-
- A gradient is defined by two or more colors, which are blended seamlessly.
- The colors start from the specified angle and end at 360 degrees larger
- angle value.
-
- \table
- \header
- \li Effect applied
- \row
- \li \image ConicalGradient.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet ConicalGradient-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- /*!
- This property defines the starting angle where the color at the gradient
- position of 0.0 is rendered. Colors at larger position values are
- rendered into larger angle values and blended seamlessly. Angle values
- increase clockwise.
-
- \table
- \header
- \li Output examples with different angle values
- \li
- \li
- \row
- \li \image ConicalGradient_angle1.png
- \li \image ConicalGradient_angle2.png
- \li \image ConicalGradient_angle3.png
- \row
- \li \b { angle: 0 }
- \li \b { angle: 45 }
- \li \b { angle: 185 }
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \endtable
-
- */
- property real angle: 0.0
-
- /*!
- \qmlproperty real QtGraphicalEffects::ConicalGradient::horizontalOffset
- \qmlproperty real QtGraphicalEffects::ConicalGradient::verticalOffset
-
- The horizontalOffset and verticalOffset properties define the offset in
- pixels for the center point of the gradient compared to the item center.
-
- The value ranges from -inf to inf. By default, the properties are set to \c
- 0.
-
- \table
- \header
- \li Output examples with different horizontalOffset values
- \li
- \li
- \row
- \li \image ConicalGradient_horizontalOffset1.png
- \li \image ConicalGradient_horizontalOffset2.png
- \li \image ConicalGradient_horizontalOffset3.png
- \row
- \li \b { horizontalOffset: -50 }
- \li \b { horizontalOffset: 0 }
- \li \b { horizontalOffset: 50 }
- \row
- \li \l angle: 0
- \li \l angle: 0
- \li \l angle: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \endtable
- */
- property real horizontalOffset: 0.0
- property real verticalOffset: 0.0
-
- /*!
- This property defines the item that is going to be filled with gradient.
- Source item gets rendered into an intermediate pixel buffer and the
- alpha values from the result are used to determine the gradient's pixels
- visibility in the display. The default value for source is undefined and
- in that case whole effect area is filled with gradient.
-
- \table
- \header
- \li Output examples with different source values
- \li
- \row
- \li \image ConicalGradient_maskSource1.png
- \li \image ConicalGradient_maskSource2.png
- \row
- \li \b { source: undefined }
- \li \b { source: }
- \row
- \li \l angle: 0
- \li \l angle: 0
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \endtable
-
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
-/*!
- A gradient is defined by two or more colors, which are blended seamlessly.
- The colors are specified as a set of GradientStop child items, each of which
- defines a position on the gradient (from 0.0 to 1.0), and a color.
- The position of each GradientStop is defined by the position property.
- The color is defined by the color property.
-
- \table
- \header
- \li Output examples with different gradient values
- \li
- \li
- \row
- \li \image ConicalGradient_gradient1.png
- \li \image ConicalGradient_gradient2.png
- \li \image ConicalGradient_gradient3.png
- \row
- \li \b {gradient:} \code
-Gradient {
- GradientStop {
- position: 0.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- GradientStop {
- position: 0.167
- color: Qt.rgba(1, 1, 0, 1)
- }
- GradientStop {
- position: 0.333
- color: Qt.rgba(0, 1, 0, 1)
- }
- GradientStop {
- position: 0.500
- color: Qt.rgba(0, 1, 1, 1)
- }
- GradientStop {
- position: 0.667
- color: Qt.rgba(0, 0, 1, 1)
- }
- GradientStop {
- position: 0.833
- color: Qt.rgba(1, 0, 1, 1)
- }
- GradientStop {
- position: 1.000
- color: Qt.rgba(1, 0, 0, 1)
- }
-}
- \endcode
- \li \b {gradient:} \code
-Gradient {
- GradientStop {
- position: 0.0
- color: "#F0F0F0"
- }
- GradientStop {
- position: 0.5
- color: "#000000"
- }
- GradientStop {
- position: 1.0
- color: "#F0F0F0"
- }
-}
- \endcode
- \li \b {gradient:} \code
-Gradient {
- GradientStop {
- position: 0.0
- color: "#00000000"
- }
- GradientStop {
- position: 1.0
- color: "#FF000000"
- }
-}
- \endcode
- \row
- \li \l angle: 0
- \li \l angle: 0
- \li \l angle: 0
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \endtable
-
-*/
- property Gradient gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.source
- }
-
- Rectangle {
- id: gradientRect
- width: 16
- height: 256
- gradient: rootItem.gradient
- smooth: true
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- rotation: shaderItem.rotation
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant gradientSource: ShaderEffectSource {
- sourceItem: gradientRect
- smooth: true
- hideSource: true
- visible: false
- }
- property variant maskSource: maskSourceProxy.output
- property real startAngle: (rootItem.angle - 90) * Math.PI/180
- property variant center: Qt.point(0.5 + horizontalOffset / width, 0.5 + verticalOffset / height)
-
- anchors.fill: parent
-
- fragmentShader: maskSource == undefined ? noMaskShader : maskShader
-
- onFragmentShaderChanged: startAngleChanged()
-
- property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/conicalgradient_nomask.frag.qsb"
- property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/conicalgradient_mask.frag.qsb"
- }
-}
diff --git a/src/effects/Desaturate.qml b/src/effects/Desaturate.qml
deleted file mode 100644
index 64107b2..0000000
--- a/src/effects/Desaturate.qml
+++ /dev/null
@@ -1,156 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype Desaturate
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Reduces the saturation of the colors.
-
- Desaturated pixel values are calculated as averages of the original RGB
- component values of the source item.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image Desaturate_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet Desaturate-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels to
- the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines how much the source colors are desaturated.
-
- The value ranges from 0.0 (no change) to 1.0 (desaturated). By default,
- the property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different desaturation values
- \li
- \li
- \row
- \li \image Desaturate_desaturation1.png
- \li \image Desaturate_desaturation2.png
- \li \image Desaturate_desaturation3.png
- \row
- \li \b { desaturation: 0.0 }
- \li \b { desaturation: 0.5 }
- \li \b { desaturation: 1.0 }
- \endtable
- */
- property real desaturation: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property real desaturation: rootItem.desaturation
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/desaturate.frag.qsb"
- }
-}
diff --git a/src/effects/Displace.qml b/src/effects/Displace.qml
deleted file mode 100644
index eed2a5a..0000000
--- a/src/effects/Displace.qml
+++ /dev/null
@@ -1,199 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype Displace
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-distortion
- \brief Moves the pixels of the source item according to the given
- displacement map.
-
- \table
- \header
- \li Source
- \li DisplacementSource
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image Displace_map.png
- \li \image Displace_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet Displace-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item for the pixels that are going to
- be displaced according to the data from
- \l{Displace::displacementSource}{displacementSource}.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the item that is going to be used as the
- displacement map. The displacementSource item gets rendered into the
- intermediate pixel buffer. The red and green component values from the
- result determine the displacement of the pixels from the source item.
-
- The format for the displacement map is similar to the tangent space
- normal maps, which can be created with most 3D-modeling tools. Many
- image processing tools include the support for generating normal maps.
- Alternatively, the displacement map for this effect can also be a QML
- element which is colored appropriately. Like any QML element, it can be
- animated. It is recommended that the size of the diplacement map matches
- the size of the \l{Displace::source}{source}.
-
- The displace data is interpreted in the RGBA format. For every pixel:
- the red channel stores the x-axis displacement, and the green channel
- stores the y-axis displacement. Blue and alpha channels are ignored for
- this effect.
-
- Assuming that red channel value 1.0 is fully red (0.0 having no red at
- all), this effect considers pixel component value 0.5 to cause no
- displacement at all. Values above 0.5 shift pixels to the left, values
- below 0.5 do the shift to the right. In a similar way, green channel
- values above 0.5 displace the pixels upwards, and values below 0.5 shift
- the pixels downwards. The actual amount of displacement in pixels
- depends on the \l displacement property.
-
- */
- property variant displacementSource
-
- /*!
- This property defines the scale for the displacement. The bigger scale,
- the bigger the displacement of the pixels. The value set to 0.0 causes
- no displacement.
-
- The value ranges from -1.0 (inverted maximum shift, according to
- displacementSource) to 1.0 (maximum shift, according to
- displacementSource). By default, the property is set to \c 0.0 (no
- displacement).
-
- \table
- \header
- \li Output examples with different displacement values
- \li
- \li
- \row
- \li \image Displace_displacement1.png
- \li \image Displace_displacement2.png
- \li \image Displace_displacement3.png
- \row
- \li \b { displacement: -0.2 }
- \li \b { displacement: 0.0 }
- \li \b { displacement: 0.2 }
- \endtable
-
- */
- property real displacement: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- SourceProxy {
- id: displacementSourceProxy
- input: rootItem.displacementSource
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant displacementSource: displacementSourceProxy.output
- property real displacement: rootItem.displacement
- property real xPixel: 1.0/width
- property real yPixel: 1.0/height
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/displace.frag.qsb"
- }
-}
diff --git a/src/effects/DropShadow.qml b/src/effects/DropShadow.qml
deleted file mode 100644
index 66c7a33..0000000
--- a/src/effects/DropShadow.qml
+++ /dev/null
@@ -1,326 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Copyright (C) 2017 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype DropShadow
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-drop-shadow
- \brief Generates a colorized and blurred shadow image of the
- source and places it behind the original, giving the impression that
- source item is raised from the background.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_butterfly.png
- \li \image DropShadow_butterfly.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet DropShadow-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be used as the
- source for the generated shadow.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- Radius defines the softness of the shadow. A larger radius causes the
- edges of the shadow to appear more blurry.
-
- The value ranges from 0.0 (no blur) to inf. By default, the property is
- set to \c 0.0 (no blur).
-
- \table
- \header
- \li Output examples with different radius values
- \li
- \li
- \row
- \li \image DropShadow_radius1.png
- \li \image DropShadow_radius2.png
- \li \image DropShadow_radius3.png
- \row
- \li \b { radius: 0 }
- \li \b { radius: 6 }
- \li \b { radius: 12 }
- \row
- \li \l color: #000000
- \li \l color: #000000
- \li \l color: #000000
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \endtable
-
- */
- property real radius: 0.0
-
- /*!
- This property defines the RGBA color value which is used for the shadow.
-
- By default, the property is set to \c "black".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image DropShadow_color1.png
- \li \image DropShadow_color2.png
- \li \image DropShadow_color3.png
- \row
- \li \b { color: #000000 }
- \li \b { color: #0000ff }
- \li \b { color: #aa000000 }
- \row
- \li \l radius: 8
- \li \l radius: 8
- \li \l radius: 8
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \endtable
-
- */
- property color color: "black"
-
- /*!
- \qmlproperty real QtGraphicalEffects1::DropShadow::horizontalOffset
- \qmlproperty real QtGraphicalEffects1::DropShadow::verticalOffset
-
- HorizontalOffset and verticalOffset properties define the offset for the
- rendered shadow compared to the DropShadow item position. Often, the
- DropShadow item is anchored so that it fills the source element. In this
- case, if the HorizontalOffset and verticalOffset properties are set to
- 0, the shadow is rendered exactly under the source item. By changing the
- offset properties, the shadow can be positioned relatively to the source
- item.
-
- The values range from -inf to inf. By default, the properties are set to
- \c 0.
-
- \table
- \header
- \li Output examples with different horizontalOffset values
- \li
- \li
- \row
- \li \image DropShadow_horizontalOffset1.png
- \li \image DropShadow_horizontalOffset2.png
- \li \image DropShadow_horizontalOffset3.png
- \row
- \li \b { horizontalOffset: -20 }
- \li \b { horizontalOffset: 0 }
- \li \b { horizontalOffset: 20 }
- \row
- \li \l radius: 4
- \li \l radius: 4
- \li \l radius: 4
- \row
- \li \l color: #000000
- \li \l color: #000000
- \li \l color: #000000
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \endtable
-
- */
- property real horizontalOffset: 0.0
- property real verticalOffset: 0.0
-
- /*!
- This property defines how large part of the shadow color is strenghtened
- near the source edges.
-
- The value ranges from 0.0 to 1.0. By default, the property is set to \c
- 0.5.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image DropShadow_spread1.png
- \li \image DropShadow_spread2.png
- \li \image DropShadow_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.5 }
- \li \b { spread: 1.0 }
- \row
- \li \l radius: 8
- \li \l radius: 8
- \li \l radius: 8
- \row
- \li \l color: #000000
- \li \l color: #000000
- \li \l color: #000000
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \li \l verticalOffset: 20
- \endtable
-
- */
- property real spread: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance. Every time the source or effect
- properties are changed, the pixels in the cache must be updated. Memory
- consumption is increased, because an extra buffer of memory is required
- for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- 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 DropShadow-transparentBorder.png
- */
- property bool transparentBorder: false
-
- Loader {
- x: rootItem.horizontalOffset
- y: rootItem.verticalOffset
- width: parent.width
- height: parent.height
- sourceComponent: fastGlow
- }
-
- Component {
- id: fastGlow
- FastGlow {
- anchors.fill: parent
- source: sourceProxy.output
- blur: Math.pow(rootItem.radius / 64.0, 0.4)
- color: rootItem.color
- cached: rootItem.cached
- spread: rootItem.spread
- transparentBorder: rootItem.transparentBorder
- }
- }
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- sourceRect: rootItem.transparentBorder ? Qt.rect(-1, -1, parent.width + 2.0, parent.height + 2.0) : Qt.rect(0, 0, 0, 0)
- }
- ShaderEffect {
- anchors.fill: parent
- property variant source: sourceProxy.output
- }
-}
diff --git a/src/effects/FastBlur.qml b/src/effects/FastBlur.qml
deleted file mode 100644
index 6b7021f..0000000
--- a/src/effects/FastBlur.qml
+++ /dev/null
@@ -1,446 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype FastBlur
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-blur
- \brief Applies a fast blur effect to one or more source items.
-
- The FastBlur effect softens the source content by blurring it with algorithm
- which uses the source content downscaling and bilinear filtering.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image FastBlur_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet FastBlur-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be blurred.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the distance of the neighboring pixels which affect
- the blurring of an individual pixel. A larger radius increases the blur
- effect. FastBlur algorithm may internally reduce the accuracy of the radius in order to
- provide good rendering performance.
-
- The value ranges from 0.0 (no blur) to inf. Visual quality of the blur is reduced when
- radius exceeds value 64. By default, the property is set to \c 0.0 (no blur).
-
- \table
- \header
- \li Output examples with different blur values
- \li
- \li
- \row
- \li \image FastBlur_radius1.png
- \li \image FastBlur_radius2.png
- \li \image FastBlur_radius3.png
- \row
- \li \b { radius: 0 }
- \li \b { radius: 32 }
- \li \b { radius: 64 }
- \endtable
- */
- property real radius: 0.0
-
- /*!
- This property defines the blur behavior near the edges of the item,
- where the pixel blurring is affected by the pixels outside the source
- edges.
-
- If the property is set to \c true, the pixels outside the source are
- interpreted to be transparent, which is similar to OpenGL
- clamp-to-border extension. The blur is expanded slightly outside the
- effect item area.
-
- If the property is set to \c false, the pixels outside the source are
- interpreted to contain the same color as the pixels at the edge of the
- item, which is similar to OpenGL clamp-to-edge behavior. The blur does
- not expand outside the effect item area.
-
- By default, the property is set to \c false.
-
- \table
- \header
- \li Output examples with different transparentBorder values
- \li
- \li
- \row
- \li \image FastBlur_transparentBorder1.png
- \li \image FastBlur_transparentBorder2.png
- \row
- \li \b { transparentBorder: false }
- \li \b { transparentBorder: true }
- \row
- \li \l radius: 64
- \li \l radius: 64
- \endtable
- */
- property bool transparentBorder: false
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: shaderItem
- visible: rootItem.cached
- sourceItem: shaderItem
- live: true
- hideSource: visible
- smooth: rootItem.radius > 0
- }
-
- /*! \internal */
- property string __internalBlurVertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.vert.qsb"
-
- /*! \internal */
- property string __internalBlurFragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.frag.qsb"
-
- ShaderEffect {
- id: level0
- property variant source: sourceProxy.output
- anchors.fill: parent
- visible: false
- smooth: true
- }
-
- ShaderEffectSource {
- id: level1
- width: Math.ceil(shaderItem.width / 32) * 32
- height: Math.ceil(shaderItem.height / 32) * 32
- sourceItem: level0
- hideSource: rootItem.visible
- sourceRect: transparentBorder ? Qt.rect(-64, -64, shaderItem.width, shaderItem.height) : Qt.rect(0, 0, 0, 0)
- visible: false
- smooth: rootItem.radius > 0
- }
-
- ShaderEffect {
- id: effect1
- property variant source: level1
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level2
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level2
- width: level1.width / 2
- height: level1.height / 2
- sourceItem: effect1
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect2
- property variant source: level2
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level3
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level3
- width: level2.width / 2
- height: level2.height / 2
- sourceItem: effect2
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect3
- property variant source: level3
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level4
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level4
- width: level3.width / 2
- height: level3.height / 2
- sourceItem: effect3
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect4
- property variant source: level4
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level5
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level5
- width: level4.width / 2
- height: level4.height / 2
- sourceItem: effect4
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect5
- property variant source: level5
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level6
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level6
- width: level5.width / 2
- height: level5.height / 2
- sourceItem: effect5
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- Item {
- id: dummysource
- width: 1
- height: 1
- visible: false
- }
-
- ShaderEffectSource {
- id: dummy
- width: 1
- height: 1
- sourceItem: dummysource
- visible: false
- smooth: false
- live: false
- }
-
- ShaderEffect {
- id: shaderItem
-
- property variant source1: level1
- property variant source2: level2
- property variant source3: level3
- property variant source4: level4
- property variant source5: level5
- property variant source6: level6
- property real lod: Math.sqrt(rootItem.radius / 64.0) * 1.2 - 0.2
- property real weight1
- property real weight2
- property real weight3
- property real weight4
- property real weight5
- property real weight6
-
- x: transparentBorder ? -64 : 0
- y: transparentBorder ? -64 : 0
- width: transparentBorder ? parent.width + 128 : parent.width
- height: transparentBorder ? parent.height + 128 : parent.height
-
- function weight(v) {
- if (v <= 0.0)
- return 1.0
- if (v >= 0.5)
- return 0.0
-
- return 1.0 - v * 2.0
- }
-
- function calculateWeights() {
-
- var w1 = weight(Math.abs(lod - 0.100))
- var w2 = weight(Math.abs(lod - 0.300))
- var w3 = weight(Math.abs(lod - 0.500))
- var w4 = weight(Math.abs(lod - 0.700))
- var w5 = weight(Math.abs(lod - 0.900))
- var w6 = weight(Math.abs(lod - 1.100))
-
- var sum = w1 + w2 + w3 + w4 + w5 + w6;
- weight1 = w1 / sum;
- weight2 = w2 / sum;
- weight3 = w3 / sum;
- weight4 = w4 / sum;
- weight5 = w5 / sum;
- weight6 = w6 / sum;
-
- upateSources()
- }
-
- function upateSources() {
- var sources = new Array();
- var weights = new Array();
-
- if (weight1 > 0) {
- sources.push(level1)
- weights.push(weight1)
- }
-
- if (weight2 > 0) {
- sources.push(level2)
- weights.push(weight2)
- }
-
- if (weight3 > 0) {
- sources.push(level3)
- weights.push(weight3)
- }
-
- if (weight4 > 0) {
- sources.push(level4)
- weights.push(weight4)
- }
-
- if (weight5 > 0) {
- sources.push(level5)
- weights.push(weight5)
- }
-
- if (weight6 > 0) {
- sources.push(level6)
- weights.push(weight6)
- }
-
- for (var j = sources.length; j < 6; j++) {
- sources.push(dummy)
- weights.push(0.0)
- }
-
- source1 = sources[0]
- source2 = sources[1]
- source3 = sources[2]
- source4 = sources[3]
- source5 = sources[4]
- source6 = sources[5]
-
- weight1 = weights[0]
- weight2 = weights[1]
- weight3 = weights[2]
- weight4 = weights[3]
- weight5 = weights[4]
- weight6 = weights[5]
- }
-
- Component.onCompleted: calculateWeights()
-
- onLodChanged: calculateWeights()
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur.frag.qsb"
- }
-}
diff --git a/src/effects/GammaAdjust.qml b/src/effects/GammaAdjust.qml
deleted file mode 100644
index f412f80..0000000
--- a/src/effects/GammaAdjust.qml
+++ /dev/null
@@ -1,193 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype GammaAdjust
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Alters the luminance of the source item.
-
- GammaAdjust is applied to each pixel according to the curve which is
- pre-defined as a power-law expression, where the property gamma is used as the
- reciprocal scaling exponent. Refer to the property documentation of \l{GammaAdjust::gamma}{gamma}
- for more details.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image GammaAdjust_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet GammaAdjust-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item for which the luminance is going to be
- adjusted.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the change factor for how the luminance of each pixel
- is altered according to the equation:
-
- \code
-luminance = pow(original_luminance, 1.0 / gamma); // The luminance is assumed to be between 0.0 and 1.0
- \endcode
-
- Setting the gamma values under 1.0 makes the image darker, the values
- above 1.0 lighten it.
-
- The value ranges from 0.0 (darkest) to inf (lightest). By default, the
- property is set to \c 1.0 (no change).
-
- \table
- \header
- \li Output examples with different gamma values
- \li
- \li
- \row
- \li \image GammaAdjust_gamma1.png
- \li \image GammaAdjust_gamma2.png
- \li \image GammaAdjust_gamma3.png
- \row
- \li \b { gamma: 0.5 }
- \li \b { gamma: 1.0 }
- \li \b { gamma: 2.0 }
- \endtable
-
- \table
- \header
- \li Pixel luminance curves of the above images.
- \li
- \li
- \row
- \li \image GammaAdjust_gamma1_graph.png
- \li \image GammaAdjust_gamma2_graph.png
- \li \image GammaAdjust_gamma3_graph.png
- \row
- \li Red curve: default gamma (1.0)
- \li
- \li
- \row
- \li Yellow curve: effect applied
- \li
- \li
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: pixel luminance with effect applied
- \li
- \li
- \endtable
-
- */
- property real gamma: 1.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property real gamma: 1.0 / Math.max(rootItem.gamma, 0.0001)
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/gammaadjust.frag.qsb"
- }
-}
diff --git a/src/effects/Glow.qml b/src/effects/Glow.qml
deleted file mode 100644
index 71bc26d..0000000
--- a/src/effects/Glow.qml
+++ /dev/null
@@ -1,247 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Copyright (C) 2017 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype Glow
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-glow
- \brief Generates a blurred and colorized image of the source and places it
- behind the original, giving impression that the source is glowing.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_butterfly_black.png
- \li \image Glow_butterfly.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet Glow-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be used as source
- for the generated glow.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- Radius defines the softness of the glow. A larger radius causes the
- edges of the glow to appear more blurry.
-
- The value ranges from 0.0 (no blur) to inf. By default, the property is
- set to \c 0.0 (no blur).
-
- \table
- \header
- \li Output examples with different radius values
- \li
- \li
- \row
- \li \image Glow_radius1.png
- \li \image Glow_radius2.png
- \li \image Glow_radius3.png
- \row
- \li \b { radius: 0 }
- \li \b { radius: 6 }
- \li \b { radius: 12 }
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \endtable
- */
- property real radius: 0.0
-
- /*!
- This property defines how large part of the glow color is strenghtened
- near the source edges.
-
- The values range from 0.0 to 1.0. By default, the property is set to \c
- 0.5.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image Glow_spread1.png
- \li \image Glow_spread2.png
- \li \image Glow_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.5 }
- \li \b { spread: 1.0 }
- \row
- \li \l radius: 8
- \li \l radius: 8
- \li \l radius: 8
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \endtable
- */
- property real spread: 0.0
-
- /*!
- This property defines the RGBA color value which is used for the glow.
-
- By default, the property is set to \c "white".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image Glow_color1.png
- \li \image Glow_color2.png
- \li \image Glow_color3.png
- \row
- \li \b { color: #ffffff }
- \li \b { color: #00ff00 }
- \li \b { color: #aa00ff00 }
- \row
- \li \l radius: 8
- \li \l radius: 8
- \li \l radius: 8
- \row
- \li \l spread: 0.5
- \li \l spread: 0.5
- \li \l spread: 0.5
- \endtable
-
- */
- property color color: "white"
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- */
- 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 snippet below, the Rectangle on the left has transparent borders
- and has blurred edges, whereas the Rectangle on the right does not.
-
- \snippet Glow-transparentBorder-example.qml example
-
- \image Glow-transparentBorder.png
- */
- property bool transparentBorder: false
-
- Loader {
- anchors.fill: parent
- sourceComponent: fastGlow
- }
-
- Component {
- id: fastGlow
- FastGlow {
- anchors.fill: parent
- source: sourceProxy.output
- blur: Math.pow(rootItem.radius / 64.0, 0.4)
- color: rootItem.color
- cached: rootItem.cached
- spread: rootItem.spread
- transparentBorder: rootItem.transparentBorder
- }
- }
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- sourceRect: rootItem.transparentBorder ? Qt.rect(-1, -1, parent.width + 2.0, parent.height + 2.0) : Qt.rect(0, 0, 0, 0)
- }
- ShaderEffect {
- anchors.fill: parent
- property variant source: sourceProxy.output
- }
-}
diff --git a/src/effects/HueSaturation.qml b/src/effects/HueSaturation.qml
deleted file mode 100644
index 4b6769e..0000000
--- a/src/effects/HueSaturation.qml
+++ /dev/null
@@ -1,233 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype HueSaturation
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Alters the source item colors in the HSL color space.
-
- HueSaturation is similar to the \l{QtGraphicalEffects::Colorize}{Colorize}
- effect, but the hue and saturation property values are handled differently.
- The HueSaturation effect always shifts the hue, saturation, and lightness
- from the original, instead of setting them.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image HueSaturation_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet HueSaturation-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source: 0
-
- /*!
- This property defines the hue value which is added to the source hue
- value.
-
- The value ranges from -1.0 (decrease) to 1.0 (increase). By default, the
- property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different hue values
- \li
- \li
- \row
- \li \image HueSaturation_hue1.png
- \li \image HueSaturation_hue2.png
- \li \image HueSaturation_hue3.png
- \row
- \li \b { hue: -0.3 }
- \li \b { hue: 0.0 }
- \li \b { hue: 0.3 }
- \row
- \li \l saturation: 0
- \li \l saturation: 0
- \li \l saturation: 0
- \row
- \li \l lightness: 0
- \li \l lightness: 0
- \li \l lightness: 0
- \endtable
-
- */
- property real hue: 0.0
-
- /*!
- This property defines the saturation value value which is added to the
- source saturation value.
-
- The value ranges from -1.0 (decrease) to 1.0 (increase). By default, the
- property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different saturation values
- \li
- \li
- \row
- \li \image HueSaturation_saturation1.png
- \li \image HueSaturation_saturation2.png
- \li \image HueSaturation_saturation3.png
- \row
- \li \b { saturation: -0.8 }
- \li \b { saturation: 0.0 }
- \li \b { saturation: 1.0 }
- \row
- \li \l hue: 0
- \li \l hue: 0
- \li \l hue: 0
- \row
- \li \l lightness: 0
- \li \l lightness: 0
- \li \l lightness: 0
- \endtable
-
- */
- property real saturation: 0.0
-
- /*!
- This property defines the lightness value which is added to the source
- saturation value.
-
- The value ranges from -1.0 (decrease) to 1.0 (increase). By default, the
- property is set to \c 0.0 (no change).
-
- \table
- \header
- \li Output examples with different lightness values
- \li
- \li
- \row
- \li \image HueSaturation_lightness1.png
- \li \image HueSaturation_lightness2.png
- \li \image HueSaturation_lightness3.png
- \row
- \li \b { lightness: -0.5 }
- \li \b { lightness: 0.0 }
- \li \b { lightness: 0.5 }
- \row
- \li \l hue: 0
- \li \l hue: 0
- \li \l hue: 0
- \row
- \li \l saturation: 0
- \li \l saturation: 0
- \li \l saturation: 0
- \endtable
-
- */
- property real lightness: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant hsl: Qt.vector3d(rootItem.hue, rootItem.saturation, rootItem.lightness)
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/huesaturation.frag.qsb"
- }
-}
diff --git a/src/effects/LevelAdjust.qml b/src/effects/LevelAdjust.qml
deleted file mode 100644
index 5ea2e17..0000000
--- a/src/effects/LevelAdjust.qml
+++ /dev/null
@@ -1,449 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype LevelAdjust
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-color
- \brief Adjusts color levels in the RGBA color space.
-
- This effect adjusts the source item colors separately for each color
- channel. Source item contrast can be adjusted and color balance altered.
-
- \table
- \header
- \li Source
- \li Effect applied
- \row
- \li \image Original_butterfly.png
- \li \image LevelAdjust_butterfly.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet LevelAdjust-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that provides the source pixels
- for the effect.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the change factor for how the value of each pixel
- color channel is altered according to the equation:
-
- \code
- result.rgb = pow(original.rgb, 1.0 / gamma.rgb);
- \endcode
-
- Setting the gamma values under QtVector3d(1.0, 1.0, 1.0) makes the image
- darker, the values above QtVector3d(1.0, 1.0, 1.0) lighten it.
-
- The value ranges from QtVector3d(0.0, 0.0, 0.0) (darkest) to inf
- (lightest). By default, the property is set to \c QtVector3d(1.0, 1.0,
- 1.0) (no change).
-
- \table
- \header
- \li Output examples with different gamma values
- \li
- \li
- \row
- \li \image LevelAdjust_gamma1.png
- \li \image LevelAdjust_gamma2.png
- \li \image LevelAdjust_gamma3.png
- \row
- \li \b { gamma: Qt.vector3d(1.0, 1.0, 1.0) }
- \li \b { gamma: Qt.vector3d(1.0, 0.4, 2.0) }
- \li \b { gamma: Qt.vector3d(1.0, 0.1, 4.0) }
- \row
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \row
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \row
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \row
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_gamma2_curve.png
- \li \image LevelAdjust_gamma3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
- */
- property variant gamma: Qt.vector3d(1.0, 1.0, 1.0)
-
- /*!
- This property defines the minimum input level for each color channel. It
- sets the black-point, all pixels having lower value than this property
- are rendered as black (per color channel). Increasing the value darkens
- the dark areas.
-
- The value ranges from "#00000000" to "#ffffffff". By default, the
- property is set to \c "#00000000" (no change).
-
- \table
- \header
- \li Output examples with different minimumInput values
- \li
- \li
- \row
- \li \image LevelAdjust_minimumInput1.png
- \li \image LevelAdjust_minimumInput2.png
- \li \image LevelAdjust_minimumInput3.png
- \row
- \li \b { minimumInput: #00000000 }
- \li \b { minimumInput: #00000040 }
- \li \b { minimumInput: #00000070 }
- \row
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \row
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \row
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \row
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_minimumInput2_curve.png
- \li \image LevelAdjust_minimumInput3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
-
- */
- property color minimumInput: Qt.rgba(0.0, 0.0, 0.0, 0.0)
-
- /*!
- This property defines the maximum input level for each color channel.
- It sets the white-point, all pixels having higher value than this
- property are rendered as white (per color channel).
- Decreasing the value lightens the light areas.
-
- The value ranges from "#ffffffff" to "#00000000". By default, the
- property is set to \c "#ffffffff" (no change).
-
- \table
- \header
- \li Output examples with different maximumInput values
- \li
- \li
- \row
- \li \image LevelAdjust_maximumInput1.png
- \li \image LevelAdjust_maximumInput2.png
- \li \image LevelAdjust_maximumInput3.png
- \row
- \li \b { maximumInput: #FFFFFFFF }
- \li \b { maximumInput: #FFFFFF80 }
- \li \b { maximumInput: #FFFFFF30 }
- \row
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \row
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \row
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \row
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_maximumInput2_curve.png
- \li \image LevelAdjust_maximumInput3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
-
- */
- property color maximumInput: Qt.rgba(1.0, 1.0, 1.0, 1.0)
-
- /*!
- This property defines the minimum output level for each color channel.
- Increasing the value lightens the dark areas, reducing the contrast.
-
- The value ranges from "#00000000" to "#ffffffff". By default, the
- property is set to \c "#00000000" (no change).
-
- \table
- \header
- \li Output examples with different minimumOutput values
- \li
- \li
- \row
- \li \image LevelAdjust_minimumOutput1.png
- \li \image LevelAdjust_minimumOutput2.png
- \li \image LevelAdjust_minimumOutput3.png
- \row
- \li \b { minimumOutput: #00000000 }
- \li \b { minimumOutput: #00000070 }
- \li \b { minimumOutput: #000000A0 }
- \row
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \row
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \row
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \li \l maximumOutput: #ffffff
- \row
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_minimumOutput2_curve.png
- \li \image LevelAdjust_minimumOutput3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
-
- */
- property color minimumOutput: Qt.rgba(0.0, 0.0, 0.0, 0.0)
-
- /*!
- This property defines the maximum output level for each color channel.
- Decreasing the value darkens the light areas, reducing the contrast.
-
- The value ranges from "#ffffffff" to "#00000000". By default, the
- property is set to \c "#ffffffff" (no change).
-
- \table
- \header
- \li Output examples with different maximumOutput values
- \li
- \li
- \row
- \li \image LevelAdjust_maximumOutput1.png
- \li \image LevelAdjust_maximumOutput2.png
- \li \image LevelAdjust_maximumOutput3.png
- \row
- \li \b { maximumOutput: #FFFFFFFF }
- \li \b { maximumOutput: #FFFFFF80 }
- \li \b { maximumOutput: #FFFFFF30 }
- \row
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \li \l minimumInput: #000000
- \row
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \li \l maximumInput: #ffffff
- \row
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \li \l minimumOutput: #000000
- \row
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \li \l gamma: Qt.vector3d(1.0, 1.0, 1.0)
- \endtable
-
- \table
- \header
- \li Pixel color channel luminance curves of the above images.
- \li
- \li
- \row
- \li \image LevelAdjust_default_curve.png
- \li \image LevelAdjust_maximumOutput2_curve.png
- \li \image LevelAdjust_maximumOutput3_curve.png
- \row
- \li X-axis: pixel original luminance
- \li
- \li
- \row
- \li Y-axis: color channel luminance with effect applied
- \li
- \li
- \endtable
- */
- property color maximumOutput: Qt.rgba(1.0, 1.0, 1.0, 1.0)
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- interpolation: input && input.smooth ? SourceProxy.LinearInterpolation : SourceProxy.NearestInterpolation
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant minimumInputRGB: Qt.vector3d(rootItem.minimumInput.r, rootItem.minimumInput.g, rootItem.minimumInput.b)
- property variant maximumInputRGB: Qt.vector3d(rootItem.maximumInput.r, rootItem.maximumInput.g, rootItem.maximumInput.b)
- property real minimumInputAlpha: rootItem.minimumInput.a
- property real maximumInputAlpha: rootItem.maximumInput.a
- property variant minimumOutputRGB: Qt.vector3d(rootItem.minimumOutput.r, rootItem.minimumOutput.g, rootItem.minimumOutput.b)
- property variant maximumOutputRGB: Qt.vector3d(rootItem.maximumOutput.r, rootItem.maximumOutput.g, rootItem.maximumOutput.b)
- property real minimumOutputAlpha: rootItem.minimumOutput.a
- property real maximumOutputAlpha: rootItem.maximumOutput.a
- property variant gamma: Qt.vector3d(1.0 / Math.max(rootItem.gamma.x, 0.0001), 1.0 / Math.max(rootItem.gamma.y, 0.0001), 1.0 / Math.max(rootItem.gamma.z, 0.0001))
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/leveladjust.frag.qsb"
- }
-}
diff --git a/src/effects/LinearGradient.qml b/src/effects/LinearGradient.qml
deleted file mode 100644
index e82c360..0000000
--- a/src/effects/LinearGradient.qml
+++ /dev/null
@@ -1,332 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype LinearGradient
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-gradient
- \brief Draws a linear gradient.
-
- A gradient is defined by two or more colors, which are blended seamlessly.
- The colors start from the given start point and end to the given end point.
-
- \table
- \header
- \li Effect applied
- \row
- \li \image LinearGradient.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet LinearGradient-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the starting point where the color at gradient
- position of 0.0 is rendered. Colors at larger position values are
- rendered linearly towards the end point. The point is given in pixels
- and the default value is Qt.point(0, 0). Setting the default values for
- the start and \l{LinearGradient::end}{end} results in a full height
- linear gradient on the y-axis.
-
- \table
- \header
- \li Output examples with different start values
- \li
- \li
- \row
- \li \image LinearGradient_start1.png
- \li \image LinearGradient_start2.png
- \li \image LinearGradient_start3.png
- \row
- \li \b { start: QPoint(0, 0) }
- \li \b { start: QPoint(150, 150) }
- \li \b { start: QPoint(300, 0) }
- \row
- \li \l end: QPoint(300, 300)
- \li \l end: QPoint(300, 300)
- \li \l end: QPoint(300, 300)
- \endtable
-
- */
- property variant start: Qt.point(0, 0)
-
- /*!
- This property defines the ending point where the color at gradient
- position of 1.0 is rendered. Colors at smaller position values are
- rendered linearly towards the start point. The point is given in pixels
- and the default value is Qt.point(0, height). Setting the default values
- for the \l{LinearGradient::start}{start} and end results in a full
- height linear gradient on the y-axis.
-
- \table
- \header
- \li Output examples with different end values
- \li
- \li
- \row
- \li \image LinearGradient_end1.png
- \li \image LinearGradient_end2.png
- \li \image LinearGradient_end3.png
- \row
- \li \b { end: Qt.point(300, 300) }
- \li \b { end: Qt.point(150, 150) }
- \li \b { end: Qt.point(300, 0) }
- \row
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \endtable
-
- */
- property variant end: Qt.point(0, height)
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- /*!
- This property defines the item that is going to be filled with gradient.
- Source item gets rendered into an intermediate pixel buffer and the
- alpha values from the result are used to determine the gradient's pixels
- visibility in the display. The default value for source is undefined and
- in that case whole effect area is filled with gradient.
-
- \table
- \header
- \li Output examples with different source values
- \li
- \li
- \row
- \li \image LinearGradient_maskSource1.png
- \li \image LinearGradient_maskSource2.png
- \row
- \li \b { source: undefined }
- \li \b { source: Image { source: images/butterfly.png } }
- \row
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \row
- \li \l end: Qt.point(300, 300)
- \li \l end: Qt.point(300, 300)
- \endtable
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
-
- /*!
- A gradient is defined by two or more colors, which are blended
- seamlessly. The colors are specified as a set of GradientStop child
- items, each of which defines a position on the gradient from 0.0 to 1.0
- and a color. The position of each GradientStop is defined by the
- position property, and the color is definded by the color property.
-
- \table
- \header
- \li Output examples with different gradient values
- \li
- \li
- \row
- \li \image LinearGradient_gradient1.png
- \li \image LinearGradient_gradient2.png
- \li \image LinearGradient_gradient3.png
- \row
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- GradientStop {
- position: 0.167
- color: Qt.rgba(1, 1, 0, 1)
- }
- GradientStop {
- position: 0.333
- color: Qt.rgba(0, 1, 0, 1)
- }
- GradientStop {
- position: 0.500
- color: Qt.rgba(0, 1, 1, 1)
- }
- GradientStop {
- position: 0.667
- color: Qt.rgba(0, 0, 1, 1)
- }
- GradientStop {
- position: 0.833
- color: Qt.rgba(1, 0, 1, 1)
- }
- GradientStop {
- position: 1.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- }
- \endcode
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.0
- color: "#F0F0F0"
- }
- GradientStop {
- position: 0.5
- color: "#000000"
- }
- GradientStop {
- position: 1.0
- color: "#F0F0F0"
- }
- }
- \endcode
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.0
- color: "#00000000"
- }
- GradientStop {
- position: 1.0
- color: "#FF000000"
- }
- }
- \endcode
- \row
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \li \l start: Qt.point(0, 0)
- \row
- \li \l end: Qt.point(300, 300)
- \li \l end: Qt.point(300, 300)
- \li \l end: Qt.point(300, 300)
- \endtable
-
- */
- property Gradient gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.source
- }
-
- ShaderEffectSource {
- id: gradientSource
- sourceItem: Rectangle {
- width: 16
- height: 256
- gradient: rootItem.gradient
- smooth: true
- }
- smooth: true
- hideSource: true
- visible: false
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
-
- anchors.fill: parent
-
- property variant source: gradientSource
- property variant maskSource: maskSourceProxy.output
- property variant startPoint: Qt.point(start.x / width, start.y / height)
- property real dx: end.x - start.x
- property real dy: end.y - start.y
- property real l: 1.0 / Math.sqrt(Math.pow(dx / width, 2.0) + Math.pow(dy / height, 2.0))
- property real angle: Math.atan2(dx, dy)
- property variant matrixData: Qt.point(Math.sin(angle), Math.cos(angle))
-
- vertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient.vert.qsb"
-
- fragmentShader: maskSource == undefined ? noMaskShader : maskShader
-
- onFragmentShaderChanged: lChanged()
-
- property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient_mask.frag.qsb"
- property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient_nomask.frag.qsb"
- }
-}
diff --git a/src/effects/OpacityMask.qml b/src/effects/OpacityMask.qml
deleted file mode 100644
index 2f58fa9..0000000
--- a/src/effects/OpacityMask.qml
+++ /dev/null
@@ -1,171 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype OpacityMask
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-mask
- \brief Masks the source item with another item.
-
- \table
- \header
- \li Source
- \li MaskSource
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image OpacityMask_mask.png
- \li \image OpacityMask_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet OpacityMask-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be masked.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the item that is going to be used as the mask. The
- mask item gets rendered into an intermediate pixel buffer and the alpha
- values from the result are used to determine the source item's pixels
- visibility in the display.
-
- \table
- \header
- \li Original
- \li Mask
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image OpacityMask_mask.png
- \li \image OpacityMask_bug.png
- \endtable
- */
- property variant maskSource
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
-
- \note It is not supported to let the effect include itself, for
- instance by setting maskSource to the effect's parent.
- */
- property bool cached: false
-
- /*!
- This property controls how the alpha values of the sourceMask will behave.
-
- If this property is \c false, the resulting opacity is the source alpha
- multiplied with the mask alpha, \c{As * Am}.
-
- If this property is \c true, the resulting opacity is the source alpha
- multiplied with the inverse of the mask alpha, \c{As * (1 - Am)}.
-
- The default is \c false.
-
- \since 5.7
- */
- property bool invert: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.maskSource
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant maskSource: maskSourceProxy.output
-
- anchors.fill: parent
-
- fragmentShader: invert ? "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/opacitymask_invert.frag.qsb" : "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/opacitymask.frag.qsb"
- }
-}
diff --git a/src/effects/RadialGradient.qml b/src/effects/RadialGradient.qml
deleted file mode 100644
index 9e7dc25..0000000
--- a/src/effects/RadialGradient.qml
+++ /dev/null
@@ -1,419 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype RadialGradient
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-gradient
- \brief Draws a radial gradient.
-
- A gradient is defined by two or more colors, which are blended seamlessly.
- The colors start from the middle of the item and end at the borders.
-
- \table
- \header
- \li Effect applied
- \row
- \li \image RadialGradient.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet RadialGradient-example.qml example
-
-*/
-Item {
- id: rootItem
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- /*!
- \qmlproperty real RadialGradient::horizontalOffset
- \qmlproperty real RadialGradient::verticalOffset
-
- The horizontalOffset and verticalOffset properties define the offset in
- pixels for the center point of the gradient compared to the item center.
-
- The values range from -inf to inf. By default, these properties are set
- to \c 0.
-
- \table
- \header
- \li Output examples with different horizontalOffset values
- \li
- \li
- \row
- \li \image RadialGradient_horizontalOffset1.png
- \li \image RadialGradient_horizontalOffset2.png
- \li \image RadialGradient_horizontalOffset3.png
- \row
- \li \b { horizontalOffset: -150 }
- \li \b { horizontalOffset: 0 }
- \li \b { horizontalOffset: 150 }
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \row
- \li \l angle: 0
- \li \l angle: 0
- \li \l angle: 0
- \endtable
-
- */
- property real horizontalOffset: 0.0
- property real verticalOffset: 0.0
-
- /*!
- \qmlproperty real RadialGradient::horizontalRadius
- \qmlproperty real RadialGradient::verticalRadius
-
- The horizontalRadius and verticalRadius properties define the shape and
- size of the radial gradient. If the radiuses are equal, the shape of the
- gradient is a circle. If the horizontal and vertical radiuses differ,
- the shape is elliptical. The radiuses are given in pixels.
-
- The value ranges from -inf to inf. By default, horizontalRadius is bound
- to width and verticalRadius is bound to height.
-
- \table
- \header
- \li Output examples with different horizontalRadius values
- \li
- \li
- \row
- \li \image RadialGradient_horizontalRadius1.png
- \li \image RadialGradient_horizontalRadius2.png
- \row
- \li \b { horizontalRadius: 300 }
- \li \b { horizontalRadius: 100 }
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \row
- \li \l angle: 0
- \li \l angle: 0
- \row
- \li \l gradient: QQuickGradient(0xa05fb10)
- \li \l gradient: QQuickGradient(0xa05fb10)
- \endtable
-
- */
- property real horizontalRadius: width
- property real verticalRadius: height
-
- /*!
- This property defines the rotation of the gradient around its center
- point. The rotation is only visible when the
- \l{RadialGradient::horizontalRadius}{horizontalRadius} and
- \l{RadialGradient::verticalRadius}{verticalRadius} properties are not
- equal. The angle is given in degrees and the default value is \c 0.
-
- \table
- \header
- \li Output examples with different angle values
- \li
- \li
- \row
- \li \image RadialGradient_angle1.png
- \li \image RadialGradient_angle2.png
- \li \image RadialGradient_angle3.png
- \row
- \li \b { angle: 0 }
- \li \b { angle: 45 }
- \li \b { angle: 90 }
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l horizontalRadius: 100
- \li \l horizontalRadius: 100
- \li \l horizontalRadius: 100
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \endtable
- */
- property real angle: 0.0
-
- /*!
- This property defines the item that is going to be filled with gradient.
- Source item gets rendered into an intermediate pixel buffer and the
- alpha values from the result are used to determine the gradient's pixels
- visibility in the display. The default value for source is undefined and
- in that case whole effect area is filled with gradient.
-
- \table
- \header
- \li Output examples with different source values
- \li
- \li
- \row
- \li \image RadialGradient_maskSource1.png
- \li \image RadialGradient_maskSource2.png
- \row
- \li \b { source: undefined }
- \li \b { source: Image { source: images/butterfly.png } }
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \row
- \li \l angle: 0
- \li \l angle: 0
- \endtable
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- A gradient is defined by two or more colors, which are blended
- seamlessly. The colors are specified as a set of GradientStop child
- items, each of which defines a position on the gradient from 0.0 to 1.0
- and a color. The position of each GradientStop is defined by setting the
- position property. The color is defined by setting the color property.
-
- \table
- \header
- \li Output examples with different gradient values
- \li
- \li
- \row
- \li \image RadialGradient_gradient1.png
- \li \image RadialGradient_gradient2.png
- \li \image RadialGradient_gradient3.png
- \row
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- GradientStop {
- position: 0.167
- color: Qt.rgba(1, 1, 0, 1)
- }
- GradientStop {
- position: 0.333
- color: Qt.rgba(0, 1, 0, 1)
- }
- GradientStop {
- position: 0.500
- color: Qt.rgba(0, 1, 1, 1)
- }
- GradientStop {
- position: 0.667
- color: Qt.rgba(0, 0, 1, 1)
- }
- GradientStop {
- position: 0.833
- color: Qt.rgba(1, 0, 1, 1)
- }
- GradientStop {
- position: 1.000
- color: Qt.rgba(1, 0, 0, 1)
- }
- }
- \endcode
- \li \b {gradient:} \code
- Gradient {
- GradientStop {
- position: 0.0
- color: "#F0F0F0"
- }
- GradientStop {
- position: 0.5
- color: "#000000"
- }
- GradientStop {
- position: 1.0
- color: "#F0F0F0"
- }
- }
- \endcode
- \li \b {gradient:}
- \code
- Gradient {
- GradientStop {
- position: 0.0
- color: "#00000000"
- }
- GradientStop {
- position: 1.0
- color: "#FF000000"
- }
- }
- \endcode
- \row
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \li \l horizontalOffset: 0
- \row
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \li \l verticalOffset: 0
- \row
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \li \l horizontalRadius: 300
- \row
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \li \l verticalRadius: 300
- \row
- \li \l angle: 0
- \li \l angle: 0
- \li \l angle: 0
- \endtable
- */
- property Gradient gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.source
- }
-
- ShaderEffectSource {
- id: gradientSource
- sourceItem: Rectangle {
- width: 16
- height: 256
- gradient: rootItem.gradient
- smooth: true
- }
- smooth: true
- hideSource: true
- visible: false
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant gradientImage: gradientSource
- property variant maskSource: maskSourceProxy.output
- property variant center: Qt.point(0.5 + rootItem.horizontalOffset / width, 0.5 + rootItem.verticalOffset / height)
- property real horizontalRatio: rootItem.horizontalRadius > 0 ? width / (2 * rootItem.horizontalRadius) : width * 16384
- property real verticalRatio: rootItem.verticalRadius > 0 ? height / (2 * rootItem.verticalRadius) : height * 16384
- property real angle: -rootItem.angle / 360 * 2 * Math.PI
- property variant matrixData: Qt.point(Math.sin(angle), Math.cos(angle))
-
- anchors.fill: parent
-
- vertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient.vert.qsb"
-
- fragmentShader: maskSource == undefined ? noMaskShader : maskShader
-
- onFragmentShaderChanged: horizontalRatioChanged()
-
- property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient_mask.frag.qsb"
- property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient_nomask.frag.qsb"
- }
-}
diff --git a/src/effects/RectangularGlow.qml b/src/effects/RectangularGlow.qml
deleted file mode 100644
index a148de9..0000000
--- a/src/effects/RectangularGlow.qml
+++ /dev/null
@@ -1,278 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype RectangularGlow
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-glow
- \brief Generates a blurred and colorized rectangle, which gives
- the impression that the source is glowing.
-
- This effect is intended to have good performance. The shape of the glow is
- limited to a rectangle with a custom corner radius. For situations where
- custom shapes are required, consider \l {QtGraphicalEffects::Glow} {Glow}
- effect.
-
- \table
- \header
- \li Effect applied
- \row
- \li \image RectangularGlow_applied.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet RectangularGlow-example.qml example
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines how many pixels outside the item area are reached
- by the glow.
-
- The value ranges from 0.0 (no glow) to inf (infinite glow). By default,
- the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different glowRadius values
- \li
- \li
- \row
- \li \image RectangularGlow_glowRadius1.png
- \li \image RectangularGlow_glowRadius2.png
- \li \image RectangularGlow_glowRadius3.png
- \row
- \li \b { glowRadius: 10 }
- \li \b { glowRadius: 20 }
- \li \b { glowRadius: 40 }
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
-
- */
- property real glowRadius: 0.0
-
- /*!
- This property defines how large part of the glow color is strengthened
- near the source edges.
-
- The value ranges from 0.0 (no strength increase) to 1.0 (maximum
- strength increase). By default, the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image RectangularGlow_spread1.png
- \li \image RectangularGlow_spread2.png
- \li \image RectangularGlow_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.5 }
- \li \b { spread: 1.0 }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
- */
- property real spread: 0.0
-
- /*!
- This property defines the RGBA color value which is used for the glow.
-
- By default, the property is set to \c "white".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image RectangularGlow_color1.png
- \li \image RectangularGlow_color2.png
- \li \image RectangularGlow_color3.png
- \row
- \li \b { color: #ffffff }
- \li \b { color: #55ff55 }
- \li \b { color: #5555ff }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
- */
- property color color: "white"
-
- /*!
- This property defines the corner radius that is used to draw a glow with
- rounded corners.
-
- The value ranges from 0.0 to half of the effective width or height of
- the glow, whichever is smaller. This can be calculated with: \c{
- min(width, height) / 2.0 + glowRadius}
-
- By default, the property is bound to glowRadius property. The glow
- behaves as if the rectangle was blurred when adjusting the glowRadius
- property.
-
- \table
- \header
- \li Output examples with different cornerRadius values
- \li
- \li
- \row
- \li \image RectangularGlow_cornerRadius1.png
- \li \image RectangularGlow_cornerRadius2.png
- \li \image RectangularGlow_cornerRadius3.png
- \row
- \li \b { cornerRadius: 0 }
- \li \b { cornerRadius: 25 }
- \li \b { cornerRadius: 50 }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \endtable
- */
- property real cornerRadius: glowRadius
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: shaderItem
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
-
- x: (parent.width - width) / 2.0
- y: (parent.height - height) / 2.0
- width: parent.width + rootItem.glowRadius * 2 + cornerRadius * 2
- height: parent.height + rootItem.glowRadius * 2 + cornerRadius * 2
-
- function clampedCornerRadius() {
- var maxCornerRadius = Math.min(rootItem.width, rootItem.height) / 2 + glowRadius;
- return Math.max(0, Math.min(rootItem.cornerRadius, maxCornerRadius))
- }
-
- property color color: rootItem.color
- property real inverseSpread: 1.0 - rootItem.spread
- property real relativeSizeX: ((inverseSpread * inverseSpread) * rootItem.glowRadius + cornerRadius * 2.0) / width
- property real relativeSizeY: relativeSizeX * (width / height)
- property real spread: rootItem.spread / 2.0
- property real cornerRadius: clampedCornerRadius()
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/rectangularglow.frag.qsb"
- }
-}
diff --git a/src/effects/ThresholdMask.qml b/src/effects/ThresholdMask.qml
deleted file mode 100644
index 911ec4c..0000000
--- a/src/effects/ThresholdMask.qml
+++ /dev/null
@@ -1,224 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-/*!
- \qmltype ThresholdMask
- \inqmlmodule QtGraphicalEffects
- \since QtGraphicalEffects 1.0
- \inherits QtQuick2::Item
- \ingroup qtgraphicaleffects-mask
- \brief Masks the source item with another item and applies a threshold
- value.
-
- The masking behavior can be controlled with the \l threshold value for the
- mask pixels.
-
- \table
- \header
- \li Source
- \li MaskSource
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image ThresholdMask_mask.png
- \li \image ThresholdMask_bug.png
- \endtable
-
- \section1 Example
-
- The following example shows how to apply the effect.
- \snippet ThresholdMask-example.qml example
-*/
-Item {
- id: rootItem
-
- /*!
- This property defines the source item that is going to be masked.
-
- \note It is not supported to let the effect include itself, for
- instance by setting source to the effect's parent.
- */
- property variant source
-
- /*!
- This property defines the item that is going to be used as the mask.
- Mask item gets rendered into an intermediate pixel buffer and the alpha
- values from the result are used to determine the source item's pixels
- visibility in the display.
-
- \table
- \header
- \li Original
- \li Mask
- \li Effect applied
- \row
- \li \image Original_bug.png
- \li \image ThresholdMask_mask.png
- \li \image ThresholdMask_bug.png
- \endtable
-
- \note It is not supported to let the effect include itself, for
- instance by setting maskSource to the effect's parent.
- */
- property variant maskSource
-
- /*!
- This property defines a threshold value for the mask pixels. The mask
- pixels that have an alpha value below this property are used to
- completely mask away the corresponding pixels from the source item. The
- mask pixels that have a higher alpha value are used to alphablend the
- source item to the display.
-
- The value ranges from 0.0 (alpha value 0) to 1.0 (alpha value 255). By
- default, the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different threshold values
- \li
- \li
- \row
- \li \image ThresholdMask_threshold1.png
- \li \image ThresholdMask_threshold2.png
- \li \image ThresholdMask_threshold3.png
- \row
- \li \b { threshold: 0.0 }
- \li \b { threshold: 0.5 }
- \li \b { threshold: 0.7 }
- \row
- \li \l spread: 0.2
- \li \l spread: 0.2
- \li \l spread: 0.2
- \endtable
- */
- property real threshold: 0.0
-
- /*!
- This property defines the smoothness of the mask edges near the
- \l{ThresholdMask::threshold}{threshold} alpha value. Setting spread to
- 0.0 uses mask normally with the specified threshold. Setting higher
- spread values softens the transition from the transparent mask pixels
- towards opaque mask pixels by adding interpolated values between them.
-
- The value ranges from 0.0 (sharp mask edge) to 1.0 (smooth mask edge).
- By default, the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image ThresholdMask_spread1.png
- \li \image ThresholdMask_spread2.png
- \li \image ThresholdMask_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.2 }
- \li \b { spread: 0.8 }
- \row
- \li \l threshold: 0.4
- \li \l threshold: 0.4
- \li \l threshold: 0.4
- \endtable
-
- */
- property real spread: 0.0
-
- /*!
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- SourceProxy {
- id: maskSourceProxy
- input: rootItem.maskSource
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
- property variant source: sourceProxy.output
- property variant maskSource: maskSourceProxy.output
- property real threshold: rootItem.threshold
- property real spread: rootItem.spread
-
- anchors.fill: parent
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/thresholdmask.frag.qsb"
- }
-}
diff --git a/src/effects/doc/images/BrightnessContrast_brightness1.png b/src/effects/doc/images/BrightnessContrast_brightness1.png
deleted file mode 100644
index 98a9d25..0000000
--- a/src/effects/doc/images/BrightnessContrast_brightness1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_brightness2.png b/src/effects/doc/images/BrightnessContrast_brightness2.png
deleted file mode 100644
index 8683c0a..0000000
--- a/src/effects/doc/images/BrightnessContrast_brightness2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_brightness3.png b/src/effects/doc/images/BrightnessContrast_brightness3.png
deleted file mode 100644
index 8d0cbb9..0000000
--- a/src/effects/doc/images/BrightnessContrast_brightness3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_bug.png b/src/effects/doc/images/BrightnessContrast_bug.png
deleted file mode 100644
index 9b3c467..0000000
--- a/src/effects/doc/images/BrightnessContrast_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_contrast1.png b/src/effects/doc/images/BrightnessContrast_contrast1.png
deleted file mode 100644
index 908cc0f..0000000
--- a/src/effects/doc/images/BrightnessContrast_contrast1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_contrast2.png b/src/effects/doc/images/BrightnessContrast_contrast2.png
deleted file mode 100644
index 8683c0a..0000000
--- a/src/effects/doc/images/BrightnessContrast_contrast2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_contrast3.png b/src/effects/doc/images/BrightnessContrast_contrast3.png
deleted file mode 100644
index 2fc89dc..0000000
--- a/src/effects/doc/images/BrightnessContrast_contrast3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/BrightnessContrast_contrast_graph.png b/src/effects/doc/images/BrightnessContrast_contrast_graph.png
deleted file mode 100644
index ee3b767..0000000
--- a/src/effects/doc/images/BrightnessContrast_contrast_graph.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ColorOverlay_butterfly.png b/src/effects/doc/images/ColorOverlay_butterfly.png
deleted file mode 100644
index faa0dbf..0000000
--- a/src/effects/doc/images/ColorOverlay_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ColorOverlay_color1.png b/src/effects/doc/images/ColorOverlay_color1.png
deleted file mode 100644
index 48925eb..0000000
--- a/src/effects/doc/images/ColorOverlay_color1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ColorOverlay_color2.png b/src/effects/doc/images/ColorOverlay_color2.png
deleted file mode 100644
index bfb27af..0000000
--- a/src/effects/doc/images/ColorOverlay_color2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ColorOverlay_color3.png b/src/effects/doc/images/ColorOverlay_color3.png
deleted file mode 100644
index 16ded7a..0000000
--- a/src/effects/doc/images/ColorOverlay_color3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_bug.png b/src/effects/doc/images/Colorize_bug.png
deleted file mode 100644
index 7b5e7df..0000000
--- a/src/effects/doc/images/Colorize_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_hue1.png b/src/effects/doc/images/Colorize_hue1.png
deleted file mode 100644
index b5cf01d..0000000
--- a/src/effects/doc/images/Colorize_hue1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_hue2.png b/src/effects/doc/images/Colorize_hue2.png
deleted file mode 100644
index 23c8348..0000000
--- a/src/effects/doc/images/Colorize_hue2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_hue3.png b/src/effects/doc/images/Colorize_hue3.png
deleted file mode 100644
index 5b7ec44..0000000
--- a/src/effects/doc/images/Colorize_hue3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_hue_scale.png b/src/effects/doc/images/Colorize_hue_scale.png
deleted file mode 100644
index 1e8ccd4..0000000
--- a/src/effects/doc/images/Colorize_hue_scale.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_lightness1.png b/src/effects/doc/images/Colorize_lightness1.png
deleted file mode 100644
index b40eb49..0000000
--- a/src/effects/doc/images/Colorize_lightness1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_lightness2.png b/src/effects/doc/images/Colorize_lightness2.png
deleted file mode 100644
index 100c718..0000000
--- a/src/effects/doc/images/Colorize_lightness2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_lightness3.png b/src/effects/doc/images/Colorize_lightness3.png
deleted file mode 100644
index 2e1e50c..0000000
--- a/src/effects/doc/images/Colorize_lightness3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_saturation1.png b/src/effects/doc/images/Colorize_saturation1.png
deleted file mode 100644
index de755e7..0000000
--- a/src/effects/doc/images/Colorize_saturation1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_saturation2.png b/src/effects/doc/images/Colorize_saturation2.png
deleted file mode 100644
index 059a5ac..0000000
--- a/src/effects/doc/images/Colorize_saturation2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Colorize_saturation3.png b/src/effects/doc/images/Colorize_saturation3.png
deleted file mode 100644
index 100c718..0000000
--- a/src/effects/doc/images/Colorize_saturation3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient.png b/src/effects/doc/images/ConicalGradient.png
deleted file mode 100644
index d22dba0..0000000
--- a/src/effects/doc/images/ConicalGradient.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_angle1.png b/src/effects/doc/images/ConicalGradient_angle1.png
deleted file mode 100644
index c29f72a..0000000
--- a/src/effects/doc/images/ConicalGradient_angle1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_angle2.png b/src/effects/doc/images/ConicalGradient_angle2.png
deleted file mode 100644
index d77f438..0000000
--- a/src/effects/doc/images/ConicalGradient_angle2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_angle3.png b/src/effects/doc/images/ConicalGradient_angle3.png
deleted file mode 100644
index 7c7b165..0000000
--- a/src/effects/doc/images/ConicalGradient_angle3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_gradient1.png b/src/effects/doc/images/ConicalGradient_gradient1.png
deleted file mode 100644
index 34676bf..0000000
--- a/src/effects/doc/images/ConicalGradient_gradient1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_gradient2.png b/src/effects/doc/images/ConicalGradient_gradient2.png
deleted file mode 100644
index 819915f..0000000
--- a/src/effects/doc/images/ConicalGradient_gradient2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_gradient3.png b/src/effects/doc/images/ConicalGradient_gradient3.png
deleted file mode 100644
index f53a65d..0000000
--- a/src/effects/doc/images/ConicalGradient_gradient3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_horizontalOffset1.png b/src/effects/doc/images/ConicalGradient_horizontalOffset1.png
deleted file mode 100644
index abd767e..0000000
--- a/src/effects/doc/images/ConicalGradient_horizontalOffset1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_horizontalOffset2.png b/src/effects/doc/images/ConicalGradient_horizontalOffset2.png
deleted file mode 100644
index c29f72a..0000000
--- a/src/effects/doc/images/ConicalGradient_horizontalOffset2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_horizontalOffset3.png b/src/effects/doc/images/ConicalGradient_horizontalOffset3.png
deleted file mode 100644
index 9052e45..0000000
--- a/src/effects/doc/images/ConicalGradient_horizontalOffset3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_maskSource1.png b/src/effects/doc/images/ConicalGradient_maskSource1.png
deleted file mode 100644
index c29f72a..0000000
--- a/src/effects/doc/images/ConicalGradient_maskSource1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ConicalGradient_maskSource2.png b/src/effects/doc/images/ConicalGradient_maskSource2.png
deleted file mode 100644
index 4c6e25d..0000000
--- a/src/effects/doc/images/ConicalGradient_maskSource2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Desaturate_bug.png b/src/effects/doc/images/Desaturate_bug.png
deleted file mode 100644
index 30c840b..0000000
--- a/src/effects/doc/images/Desaturate_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Desaturate_desaturation1.png b/src/effects/doc/images/Desaturate_desaturation1.png
deleted file mode 100644
index f514ee4..0000000
--- a/src/effects/doc/images/Desaturate_desaturation1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Desaturate_desaturation2.png b/src/effects/doc/images/Desaturate_desaturation2.png
deleted file mode 100644
index 9665093..0000000
--- a/src/effects/doc/images/Desaturate_desaturation2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Desaturate_desaturation3.png b/src/effects/doc/images/Desaturate_desaturation3.png
deleted file mode 100644
index 0c9a6ec..0000000
--- a/src/effects/doc/images/Desaturate_desaturation3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_bug.png b/src/effects/doc/images/Displace_bug.png
deleted file mode 100644
index db95764..0000000
--- a/src/effects/doc/images/Displace_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_displacement1.png b/src/effects/doc/images/Displace_displacement1.png
deleted file mode 100644
index a7c4a68..0000000
--- a/src/effects/doc/images/Displace_displacement1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_displacement2.png b/src/effects/doc/images/Displace_displacement2.png
deleted file mode 100644
index ad8a68c..0000000
--- a/src/effects/doc/images/Displace_displacement2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_displacement3.png b/src/effects/doc/images/Displace_displacement3.png
deleted file mode 100644
index 58286a8..0000000
--- a/src/effects/doc/images/Displace_displacement3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Displace_map.png b/src/effects/doc/images/Displace_map.png
deleted file mode 100644
index 42f6baa..0000000
--- a/src/effects/doc/images/Displace_map.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow-transparentBorder.png b/src/effects/doc/images/DropShadow-transparentBorder.png
deleted file mode 100644
index bb1e3b9..0000000
--- a/src/effects/doc/images/DropShadow-transparentBorder.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_butterfly.png b/src/effects/doc/images/DropShadow_butterfly.png
deleted file mode 100644
index 8fa2c09..0000000
--- a/src/effects/doc/images/DropShadow_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_color1.png b/src/effects/doc/images/DropShadow_color1.png
deleted file mode 100644
index a5945d4..0000000
--- a/src/effects/doc/images/DropShadow_color1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_color2.png b/src/effects/doc/images/DropShadow_color2.png
deleted file mode 100644
index 6e5a16e..0000000
--- a/src/effects/doc/images/DropShadow_color2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_color3.png b/src/effects/doc/images/DropShadow_color3.png
deleted file mode 100644
index 042ada6..0000000
--- a/src/effects/doc/images/DropShadow_color3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_fast1.png b/src/effects/doc/images/DropShadow_fast1.png
deleted file mode 100644
index 1138f84..0000000
--- a/src/effects/doc/images/DropShadow_fast1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_fast2.png b/src/effects/doc/images/DropShadow_fast2.png
deleted file mode 100644
index 385c0dc..0000000
--- a/src/effects/doc/images/DropShadow_fast2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_horizontalOffset1.png b/src/effects/doc/images/DropShadow_horizontalOffset1.png
deleted file mode 100644
index 901780d..0000000
--- a/src/effects/doc/images/DropShadow_horizontalOffset1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_horizontalOffset2.png b/src/effects/doc/images/DropShadow_horizontalOffset2.png
deleted file mode 100644
index 87ebf93..0000000
--- a/src/effects/doc/images/DropShadow_horizontalOffset2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_horizontalOffset3.png b/src/effects/doc/images/DropShadow_horizontalOffset3.png
deleted file mode 100644
index 1f56467..0000000
--- a/src/effects/doc/images/DropShadow_horizontalOffset3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_radius1.png b/src/effects/doc/images/DropShadow_radius1.png
deleted file mode 100644
index 2dd234b..0000000
--- a/src/effects/doc/images/DropShadow_radius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_radius2.png b/src/effects/doc/images/DropShadow_radius2.png
deleted file mode 100644
index 50fdd15..0000000
--- a/src/effects/doc/images/DropShadow_radius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_radius3.png b/src/effects/doc/images/DropShadow_radius3.png
deleted file mode 100644
index e7daa02..0000000
--- a/src/effects/doc/images/DropShadow_radius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_spread1.png b/src/effects/doc/images/DropShadow_spread1.png
deleted file mode 100644
index fa9ca85..0000000
--- a/src/effects/doc/images/DropShadow_spread1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_spread2.png b/src/effects/doc/images/DropShadow_spread2.png
deleted file mode 100644
index 0a9024f..0000000
--- a/src/effects/doc/images/DropShadow_spread2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/DropShadow_spread3.png b/src/effects/doc/images/DropShadow_spread3.png
deleted file mode 100644
index 4f50544..0000000
--- a/src/effects/doc/images/DropShadow_spread3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_bug.png b/src/effects/doc/images/FastBlur_bug.png
deleted file mode 100644
index 05d5e8d..0000000
--- a/src/effects/doc/images/FastBlur_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_radius1.png b/src/effects/doc/images/FastBlur_radius1.png
deleted file mode 100644
index 43816e9..0000000
--- a/src/effects/doc/images/FastBlur_radius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_radius2.png b/src/effects/doc/images/FastBlur_radius2.png
deleted file mode 100644
index 239bee7..0000000
--- a/src/effects/doc/images/FastBlur_radius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_radius3.png b/src/effects/doc/images/FastBlur_radius3.png
deleted file mode 100644
index 6c66780..0000000
--- a/src/effects/doc/images/FastBlur_radius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_transparentBorder1.png b/src/effects/doc/images/FastBlur_transparentBorder1.png
deleted file mode 100644
index 6c66780..0000000
--- a/src/effects/doc/images/FastBlur_transparentBorder1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/FastBlur_transparentBorder2.png b/src/effects/doc/images/FastBlur_transparentBorder2.png
deleted file mode 100644
index 9f0d293..0000000
--- a/src/effects/doc/images/FastBlur_transparentBorder2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_bug.png b/src/effects/doc/images/GammaAdjust_bug.png
deleted file mode 100644
index dd3c907..0000000
--- a/src/effects/doc/images/GammaAdjust_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma1.png b/src/effects/doc/images/GammaAdjust_gamma1.png
deleted file mode 100644
index 4154557..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma1_graph.png b/src/effects/doc/images/GammaAdjust_gamma1_graph.png
deleted file mode 100644
index 12916d4..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma1_graph.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma2.png b/src/effects/doc/images/GammaAdjust_gamma2.png
deleted file mode 100644
index 8683c0a..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma2_graph.png b/src/effects/doc/images/GammaAdjust_gamma2_graph.png
deleted file mode 100644
index 15064cb..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma2_graph.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma3.png b/src/effects/doc/images/GammaAdjust_gamma3.png
deleted file mode 100644
index 7e76d49..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/GammaAdjust_gamma3_graph.png b/src/effects/doc/images/GammaAdjust_gamma3_graph.png
deleted file mode 100644
index 8201612..0000000
--- a/src/effects/doc/images/GammaAdjust_gamma3_graph.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow-transparentBorder.png b/src/effects/doc/images/Glow-transparentBorder.png
deleted file mode 100644
index 58aae6c..0000000
--- a/src/effects/doc/images/Glow-transparentBorder.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_butterfly.png b/src/effects/doc/images/Glow_butterfly.png
deleted file mode 100644
index 57c26f8..0000000
--- a/src/effects/doc/images/Glow_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_color1.png b/src/effects/doc/images/Glow_color1.png
deleted file mode 100644
index 1a7ec7e..0000000
--- a/src/effects/doc/images/Glow_color1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_color2.png b/src/effects/doc/images/Glow_color2.png
deleted file mode 100644
index d080e4e..0000000
--- a/src/effects/doc/images/Glow_color2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_color3.png b/src/effects/doc/images/Glow_color3.png
deleted file mode 100644
index 4f938b9..0000000
--- a/src/effects/doc/images/Glow_color3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_fast1.png b/src/effects/doc/images/Glow_fast1.png
deleted file mode 100644
index 02dda5f..0000000
--- a/src/effects/doc/images/Glow_fast1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_fast2.png b/src/effects/doc/images/Glow_fast2.png
deleted file mode 100644
index 6bec33e..0000000
--- a/src/effects/doc/images/Glow_fast2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_radius1.png b/src/effects/doc/images/Glow_radius1.png
deleted file mode 100644
index 884e591..0000000
--- a/src/effects/doc/images/Glow_radius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_radius2.png b/src/effects/doc/images/Glow_radius2.png
deleted file mode 100644
index cf641fa..0000000
--- a/src/effects/doc/images/Glow_radius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_radius3.png b/src/effects/doc/images/Glow_radius3.png
deleted file mode 100644
index c8c59d0..0000000
--- a/src/effects/doc/images/Glow_radius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_spread1.png b/src/effects/doc/images/Glow_spread1.png
deleted file mode 100644
index 6751da5..0000000
--- a/src/effects/doc/images/Glow_spread1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_spread2.png b/src/effects/doc/images/Glow_spread2.png
deleted file mode 100644
index 1a7ec7e..0000000
--- a/src/effects/doc/images/Glow_spread2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Glow_spread3.png b/src/effects/doc/images/Glow_spread3.png
deleted file mode 100644
index 2ac79e7..0000000
--- a/src/effects/doc/images/Glow_spread3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_bug.png b/src/effects/doc/images/HueSaturation_bug.png
deleted file mode 100644
index 96c150d..0000000
--- a/src/effects/doc/images/HueSaturation_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_hue1.png b/src/effects/doc/images/HueSaturation_hue1.png
deleted file mode 100644
index a48fbf2..0000000
--- a/src/effects/doc/images/HueSaturation_hue1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_hue2.png b/src/effects/doc/images/HueSaturation_hue2.png
deleted file mode 100644
index cbb2883..0000000
--- a/src/effects/doc/images/HueSaturation_hue2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_hue3.png b/src/effects/doc/images/HueSaturation_hue3.png
deleted file mode 100644
index 01ce35c..0000000
--- a/src/effects/doc/images/HueSaturation_hue3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_lightness1.png b/src/effects/doc/images/HueSaturation_lightness1.png
deleted file mode 100644
index 64cd230..0000000
--- a/src/effects/doc/images/HueSaturation_lightness1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_lightness2.png b/src/effects/doc/images/HueSaturation_lightness2.png
deleted file mode 100644
index cbb2883..0000000
--- a/src/effects/doc/images/HueSaturation_lightness2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_lightness3.png b/src/effects/doc/images/HueSaturation_lightness3.png
deleted file mode 100644
index 037f20f..0000000
--- a/src/effects/doc/images/HueSaturation_lightness3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_saturation1.png b/src/effects/doc/images/HueSaturation_saturation1.png
deleted file mode 100644
index 0ba3ff6..0000000
--- a/src/effects/doc/images/HueSaturation_saturation1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_saturation2.png b/src/effects/doc/images/HueSaturation_saturation2.png
deleted file mode 100644
index cbb2883..0000000
--- a/src/effects/doc/images/HueSaturation_saturation2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/HueSaturation_saturation3.png b/src/effects/doc/images/HueSaturation_saturation3.png
deleted file mode 100644
index f2fb8ed..0000000
--- a/src/effects/doc/images/HueSaturation_saturation3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_butterfly.png b/src/effects/doc/images/LevelAdjust_butterfly.png
deleted file mode 100644
index 442380e..0000000
--- a/src/effects/doc/images/LevelAdjust_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_default_curve.png b/src/effects/doc/images/LevelAdjust_default_curve.png
deleted file mode 100644
index d689e0b..0000000
--- a/src/effects/doc/images/LevelAdjust_default_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma1.png b/src/effects/doc/images/LevelAdjust_gamma1.png
deleted file mode 100644
index 83475bf..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma1_curve.png b/src/effects/doc/images/LevelAdjust_gamma1_curve.png
deleted file mode 100644
index d689e0b..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma1_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma2.png b/src/effects/doc/images/LevelAdjust_gamma2.png
deleted file mode 100644
index 1f968a5..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma2_curve.png b/src/effects/doc/images/LevelAdjust_gamma2_curve.png
deleted file mode 100644
index 2533ca3..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma3.png b/src/effects/doc/images/LevelAdjust_gamma3.png
deleted file mode 100644
index d656513..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_gamma3_curve.png b/src/effects/doc/images/LevelAdjust_gamma3_curve.png
deleted file mode 100644
index ac3a7ca..0000000
--- a/src/effects/doc/images/LevelAdjust_gamma3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput1.png b/src/effects/doc/images/LevelAdjust_maximumInput1.png
deleted file mode 100644
index ac3d2aa..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput2.png b/src/effects/doc/images/LevelAdjust_maximumInput2.png
deleted file mode 100644
index 59ab858..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput2_curve.png b/src/effects/doc/images/LevelAdjust_maximumInput2_curve.png
deleted file mode 100644
index 8cfcae9..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput3.png b/src/effects/doc/images/LevelAdjust_maximumInput3.png
deleted file mode 100644
index 309f60e..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumInput3_curve.png b/src/effects/doc/images/LevelAdjust_maximumInput3_curve.png
deleted file mode 100644
index 76ee303..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumInput3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput1.png b/src/effects/doc/images/LevelAdjust_maximumOutput1.png
deleted file mode 100644
index ac3d2aa..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput2.png b/src/effects/doc/images/LevelAdjust_maximumOutput2.png
deleted file mode 100644
index 4c69453..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput2_curve.png b/src/effects/doc/images/LevelAdjust_maximumOutput2_curve.png
deleted file mode 100644
index 6c98980..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput3.png b/src/effects/doc/images/LevelAdjust_maximumOutput3.png
deleted file mode 100644
index 3039b56..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_maximumOutput3_curve.png b/src/effects/doc/images/LevelAdjust_maximumOutput3_curve.png
deleted file mode 100644
index 3e464ef..0000000
--- a/src/effects/doc/images/LevelAdjust_maximumOutput3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput1.png b/src/effects/doc/images/LevelAdjust_minimumInput1.png
deleted file mode 100644
index ac3d2aa..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput2.png b/src/effects/doc/images/LevelAdjust_minimumInput2.png
deleted file mode 100644
index aa317d0..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput2_curve.png b/src/effects/doc/images/LevelAdjust_minimumInput2_curve.png
deleted file mode 100644
index 056f828..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput3.png b/src/effects/doc/images/LevelAdjust_minimumInput3.png
deleted file mode 100644
index be62f73..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumInput3_curve.png b/src/effects/doc/images/LevelAdjust_minimumInput3_curve.png
deleted file mode 100644
index ed4c5e5..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumInput3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput1.png b/src/effects/doc/images/LevelAdjust_minimumOutput1.png
deleted file mode 100644
index ac3d2aa..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput2.png b/src/effects/doc/images/LevelAdjust_minimumOutput2.png
deleted file mode 100644
index 6124df1..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput2_curve.png b/src/effects/doc/images/LevelAdjust_minimumOutput2_curve.png
deleted file mode 100644
index 2b4d3b1..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput2_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput3.png b/src/effects/doc/images/LevelAdjust_minimumOutput3.png
deleted file mode 100644
index 43fe2b7..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LevelAdjust_minimumOutput3_curve.png b/src/effects/doc/images/LevelAdjust_minimumOutput3_curve.png
deleted file mode 100644
index 7ebc8a9..0000000
--- a/src/effects/doc/images/LevelAdjust_minimumOutput3_curve.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient.png b/src/effects/doc/images/LinearGradient.png
deleted file mode 100644
index 1f96c11..0000000
--- a/src/effects/doc/images/LinearGradient.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_end1.png b/src/effects/doc/images/LinearGradient_end1.png
deleted file mode 100644
index 0967b0f..0000000
--- a/src/effects/doc/images/LinearGradient_end1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_end2.png b/src/effects/doc/images/LinearGradient_end2.png
deleted file mode 100644
index d0cde06..0000000
--- a/src/effects/doc/images/LinearGradient_end2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_end3.png b/src/effects/doc/images/LinearGradient_end3.png
deleted file mode 100644
index 49e5be2..0000000
--- a/src/effects/doc/images/LinearGradient_end3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_gradient1.png b/src/effects/doc/images/LinearGradient_gradient1.png
deleted file mode 100644
index 5788562..0000000
--- a/src/effects/doc/images/LinearGradient_gradient1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_gradient2.png b/src/effects/doc/images/LinearGradient_gradient2.png
deleted file mode 100644
index 21c2809..0000000
--- a/src/effects/doc/images/LinearGradient_gradient2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_gradient3.png b/src/effects/doc/images/LinearGradient_gradient3.png
deleted file mode 100644
index 3950a09..0000000
--- a/src/effects/doc/images/LinearGradient_gradient3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_maskSource1.png b/src/effects/doc/images/LinearGradient_maskSource1.png
deleted file mode 100644
index 0967b0f..0000000
--- a/src/effects/doc/images/LinearGradient_maskSource1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_maskSource2.png b/src/effects/doc/images/LinearGradient_maskSource2.png
deleted file mode 100644
index 5f0fcdd..0000000
--- a/src/effects/doc/images/LinearGradient_maskSource2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_start1.png b/src/effects/doc/images/LinearGradient_start1.png
deleted file mode 100644
index 0967b0f..0000000
--- a/src/effects/doc/images/LinearGradient_start1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_start2.png b/src/effects/doc/images/LinearGradient_start2.png
deleted file mode 100644
index b895154..0000000
--- a/src/effects/doc/images/LinearGradient_start2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/LinearGradient_start3.png b/src/effects/doc/images/LinearGradient_start3.png
deleted file mode 100644
index ddf06b6..0000000
--- a/src/effects/doc/images/LinearGradient_start3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/OpacityMask_bug.png b/src/effects/doc/images/OpacityMask_bug.png
deleted file mode 100644
index 353aa19..0000000
--- a/src/effects/doc/images/OpacityMask_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/OpacityMask_mask.png b/src/effects/doc/images/OpacityMask_mask.png
deleted file mode 100644
index 2522da3..0000000
--- a/src/effects/doc/images/OpacityMask_mask.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Original_bug.png b/src/effects/doc/images/Original_bug.png
deleted file mode 100644
index a93bcde..0000000
--- a/src/effects/doc/images/Original_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Original_butterfly.png b/src/effects/doc/images/Original_butterfly.png
deleted file mode 100644
index a81dc7b..0000000
--- a/src/effects/doc/images/Original_butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/Original_butterfly_black.png b/src/effects/doc/images/Original_butterfly_black.png
deleted file mode 100644
index 1f9f010..0000000
--- a/src/effects/doc/images/Original_butterfly_black.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient.png b/src/effects/doc/images/RadialGradient.png
deleted file mode 100644
index 279e3de..0000000
--- a/src/effects/doc/images/RadialGradient.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_angle1.png b/src/effects/doc/images/RadialGradient_angle1.png
deleted file mode 100644
index f7b1847..0000000
--- a/src/effects/doc/images/RadialGradient_angle1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_angle2.png b/src/effects/doc/images/RadialGradient_angle2.png
deleted file mode 100644
index b39243b..0000000
--- a/src/effects/doc/images/RadialGradient_angle2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_angle3.png b/src/effects/doc/images/RadialGradient_angle3.png
deleted file mode 100644
index fba3fdb..0000000
--- a/src/effects/doc/images/RadialGradient_angle3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_default.png b/src/effects/doc/images/RadialGradient_default.png
deleted file mode 100644
index 58de74d..0000000
--- a/src/effects/doc/images/RadialGradient_default.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_gradient1.png b/src/effects/doc/images/RadialGradient_gradient1.png
deleted file mode 100644
index 947ac33..0000000
--- a/src/effects/doc/images/RadialGradient_gradient1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_gradient2.png b/src/effects/doc/images/RadialGradient_gradient2.png
deleted file mode 100644
index 90b2ce5..0000000
--- a/src/effects/doc/images/RadialGradient_gradient2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_gradient3.png b/src/effects/doc/images/RadialGradient_gradient3.png
deleted file mode 100644
index 9f97c8e..0000000
--- a/src/effects/doc/images/RadialGradient_gradient3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalOffset1.png b/src/effects/doc/images/RadialGradient_horizontalOffset1.png
deleted file mode 100644
index 0bf231a..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalOffset1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalOffset2.png b/src/effects/doc/images/RadialGradient_horizontalOffset2.png
deleted file mode 100644
index 983855f..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalOffset2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalOffset3.png b/src/effects/doc/images/RadialGradient_horizontalOffset3.png
deleted file mode 100644
index 6cb008b..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalOffset3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalRadius1.png b/src/effects/doc/images/RadialGradient_horizontalRadius1.png
deleted file mode 100644
index 983855f..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalRadius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalRadius2.png b/src/effects/doc/images/RadialGradient_horizontalRadius2.png
deleted file mode 100644
index f7b1847..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalRadius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_horizontalRadius3.png b/src/effects/doc/images/RadialGradient_horizontalRadius3.png
deleted file mode 100644
index 2f8c8f9..0000000
--- a/src/effects/doc/images/RadialGradient_horizontalRadius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_maskSource1.png b/src/effects/doc/images/RadialGradient_maskSource1.png
deleted file mode 100644
index 983855f..0000000
--- a/src/effects/doc/images/RadialGradient_maskSource1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_maskSource2.png b/src/effects/doc/images/RadialGradient_maskSource2.png
deleted file mode 100644
index 7748131..0000000
--- a/src/effects/doc/images/RadialGradient_maskSource2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RadialGradient_withmask.png b/src/effects/doc/images/RadialGradient_withmask.png
deleted file mode 100644
index b78f26a..0000000
--- a/src/effects/doc/images/RadialGradient_withmask.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_applied.png b/src/effects/doc/images/RectangularGlow_applied.png
deleted file mode 100644
index c4d530a..0000000
--- a/src/effects/doc/images/RectangularGlow_applied.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_color1.png b/src/effects/doc/images/RectangularGlow_color1.png
deleted file mode 100644
index bb0e6a7..0000000
--- a/src/effects/doc/images/RectangularGlow_color1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_color2.png b/src/effects/doc/images/RectangularGlow_color2.png
deleted file mode 100644
index e26dafc..0000000
--- a/src/effects/doc/images/RectangularGlow_color2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_color3.png b/src/effects/doc/images/RectangularGlow_color3.png
deleted file mode 100644
index 81003f5..0000000
--- a/src/effects/doc/images/RectangularGlow_color3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_cornerRadius1.png b/src/effects/doc/images/RectangularGlow_cornerRadius1.png
deleted file mode 100644
index 8abb5cb..0000000
--- a/src/effects/doc/images/RectangularGlow_cornerRadius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_cornerRadius2.png b/src/effects/doc/images/RectangularGlow_cornerRadius2.png
deleted file mode 100644
index bb0e6a7..0000000
--- a/src/effects/doc/images/RectangularGlow_cornerRadius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_cornerRadius3.png b/src/effects/doc/images/RectangularGlow_cornerRadius3.png
deleted file mode 100644
index 9dc4b8f..0000000
--- a/src/effects/doc/images/RectangularGlow_cornerRadius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_glowRadius1.png b/src/effects/doc/images/RectangularGlow_glowRadius1.png
deleted file mode 100644
index 80a316f..0000000
--- a/src/effects/doc/images/RectangularGlow_glowRadius1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_glowRadius2.png b/src/effects/doc/images/RectangularGlow_glowRadius2.png
deleted file mode 100644
index bb0e6a7..0000000
--- a/src/effects/doc/images/RectangularGlow_glowRadius2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_glowRadius3.png b/src/effects/doc/images/RectangularGlow_glowRadius3.png
deleted file mode 100644
index 2ac2561..0000000
--- a/src/effects/doc/images/RectangularGlow_glowRadius3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_spread1.png b/src/effects/doc/images/RectangularGlow_spread1.png
deleted file mode 100644
index bb0e6a7..0000000
--- a/src/effects/doc/images/RectangularGlow_spread1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_spread2.png b/src/effects/doc/images/RectangularGlow_spread2.png
deleted file mode 100644
index 249eae2..0000000
--- a/src/effects/doc/images/RectangularGlow_spread2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/RectangularGlow_spread3.png b/src/effects/doc/images/RectangularGlow_spread3.png
deleted file mode 100644
index 536d321..0000000
--- a/src/effects/doc/images/RectangularGlow_spread3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_bug.png b/src/effects/doc/images/ThresholdMask_bug.png
deleted file mode 100644
index d16429a..0000000
--- a/src/effects/doc/images/ThresholdMask_bug.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_mask.png b/src/effects/doc/images/ThresholdMask_mask.png
deleted file mode 100644
index 1904fbf..0000000
--- a/src/effects/doc/images/ThresholdMask_mask.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_spread1.png b/src/effects/doc/images/ThresholdMask_spread1.png
deleted file mode 100644
index 2288c2f..0000000
--- a/src/effects/doc/images/ThresholdMask_spread1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_spread2.png b/src/effects/doc/images/ThresholdMask_spread2.png
deleted file mode 100644
index 504702e..0000000
--- a/src/effects/doc/images/ThresholdMask_spread2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_spread3.png b/src/effects/doc/images/ThresholdMask_spread3.png
deleted file mode 100644
index db289b1..0000000
--- a/src/effects/doc/images/ThresholdMask_spread3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_threshold1.png b/src/effects/doc/images/ThresholdMask_threshold1.png
deleted file mode 100644
index 8683c0a..0000000
--- a/src/effects/doc/images/ThresholdMask_threshold1.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_threshold2.png b/src/effects/doc/images/ThresholdMask_threshold2.png
deleted file mode 100644
index 15f1a1d..0000000
--- a/src/effects/doc/images/ThresholdMask_threshold2.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/ThresholdMask_threshold3.png b/src/effects/doc/images/ThresholdMask_threshold3.png
deleted file mode 100644
index e0eb02b..0000000
--- a/src/effects/doc/images/ThresholdMask_threshold3.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/bug.jpg b/src/effects/doc/images/bug.jpg
deleted file mode 100644
index 43e3676..0000000
--- a/src/effects/doc/images/bug.jpg
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/butterfly.png b/src/effects/doc/images/butterfly.png
deleted file mode 100644
index ce544f2..0000000
--- a/src/effects/doc/images/butterfly.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/checker.png b/src/effects/doc/images/checker.png
deleted file mode 100644
index b7f067b..0000000
--- a/src/effects/doc/images/checker.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/fog.png b/src/effects/doc/images/fog.png
deleted file mode 100644
index 1a51c01..0000000
--- a/src/effects/doc/images/fog.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/images/glass_normal.png b/src/effects/doc/images/glass_normal.png
deleted file mode 100644
index ba360ef..0000000
--- a/src/effects/doc/images/glass_normal.png
+++ /dev/null
Binary files differ
diff --git a/src/effects/doc/qtgraphicaleffects.qdocconf b/src/effects/doc/qtgraphicaleffects.qdocconf
deleted file mode 100644
index 27d8917..0000000
--- a/src/effects/doc/qtgraphicaleffects.qdocconf
+++ /dev/null
@@ -1,44 +0,0 @@
-include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
-include($QT_INSTALL_DOCS/config/exampleurl-qtgraphicaleffects.qdocconf)
-
-project = QtGraphicalEffects
-description = Qt Graphical Effects Reference Documentation
-version = $QT_VERSION
-moduleheader =
-
-qhp.projects = QtGraphicalEffects
-
-qhp.QtGraphicalEffects.file = qtgraphicaleffects.qhp
-qhp.QtGraphicalEffects.namespace = org.qt-project.qtgraphicaleffects.$QT_VERSION_TAG
-qhp.QtGraphicalEffects.virtualFolder = qtgraphicaleffects
-qhp.QtGraphicalEffects.indexTitle = Qt Graphical Effects
-qhp.QtGraphicalEffects.indexRoot =
-
-qhp.QtGraphicalEffects.filterAttributes = qtgraphicaleffects $QT_VERSION qtrefdoc
-qhp.QtGraphicalEffects.customFilters.Qt.name = QtGraphicalEffects $QT_VERSION
-qhp.QtGraphicalEffects.customFilters.Qt.filterAttributes = qtgraphicaleffects $QT_VERSION
-
-qhp.QtGraphicalEffects.subprojects = qmltypes
-qhp.QtGraphicalEffects.subprojects.qmltypes.title = QML Types
-qhp.QtGraphicalEffects.subprojects.qmltypes.indexTitle = Graphical Effects
-qhp.QtGraphicalEffects.subprojects.qmltypes.selectors = qmlclass
-qhp.QtGraphicalEffects.subprojects.qmltypes.sortPages = true
-
-outputdir = $$QT_INSTALL_DOCS/qtgraphicaleffects
-tagfile = ../../../doc/qtgraphicaleffects/qtgraphicaleffects.tags
-
-headerdirs += .. \
-
-sourcedirs += .. \
-
-
-exampledirs += ../../../examples/graphicaleffects \
- snippets/
-
-
-imagedirs += images
-
-depends += qtqml qtquick qtdoc qtcore
-
-navigation.landingpage = "Qt Graphical Effects"
-navigation.qmltypespage = "Graphical Effects"
diff --git a/src/effects/doc/snippets/BrightnessContrast-example.qml b/src/effects/doc/snippets/BrightnessContrast-example.qml
deleted file mode 100644
index aae1f57..0000000
--- a/src/effects/doc/snippets/BrightnessContrast-example.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- BrightnessContrast {
- anchors.fill: bug
- source: bug
- brightness: 0.5
- contrast: 0.5
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/ColorOverlay-example.qml b/src/effects/doc/snippets/ColorOverlay-example.qml
deleted file mode 100644
index 6d4143c..0000000
--- a/src/effects/doc/snippets/ColorOverlay-example.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- ColorOverlay {
- anchors.fill: bug
- source: bug
- color: "#80800000"
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Colorize-example.qml b/src/effects/doc/snippets/Colorize-example.qml
deleted file mode 100644
index 50df592..0000000
--- a/src/effects/doc/snippets/Colorize-example.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Colorize {
- anchors.fill: bug
- source: bug
- hue: 0.0
- saturation: 0.5
- lightness: -0.2
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/ConicalGradient-example.qml b/src/effects/doc/snippets/ConicalGradient-example.qml
deleted file mode 100644
index 427f54c..0000000
--- a/src/effects/doc/snippets/ConicalGradient-example.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- ConicalGradient {
- anchors.fill: parent
- angle: 0.0
- gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Desaturate-example.qml b/src/effects/doc/snippets/Desaturate-example.qml
deleted file mode 100644
index 41120dd..0000000
--- a/src/effects/doc/snippets/Desaturate-example.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Desaturate {
- anchors.fill: bug
- source: bug
- desaturation: 0.8
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Displace-example.qml b/src/effects/doc/snippets/Displace-example.qml
deleted file mode 100644
index d54c4af..0000000
--- a/src/effects/doc/snippets/Displace-example.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Rectangle {
- id: displacement
- color: Qt.rgba(0.5, 0.5, 1.0, 1.0)
- anchors.fill: parent
- visible: false
- Image {
- anchors.centerIn: parent
- source: "images/glass_normal.png"
- sourceSize: Qt.size(parent.width/2, parent.height/2)
- smooth: true
- }
- }
-
- Displace {
- anchors.fill: bug
- source: bug
- displacementSource: displacement
- displacement: 0.1
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/DropShadow-example.qml b/src/effects/doc/snippets/DropShadow-example.qml
deleted file mode 100644
index 75361dd..0000000
--- a/src/effects/doc/snippets/DropShadow-example.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Rectangle {
- anchors.fill: parent
- }
-
- Image {
- id: butterfly
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- DropShadow {
- anchors.fill: butterfly
- horizontalOffset: 3
- verticalOffset: 3
- radius: 8.0
- color: "#80000000"
- source: butterfly
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml b/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml
deleted file mode 100644
index 3ebfe0e..0000000
--- a/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Rectangle {
- width: 180
- height: 100
-
- Row {
- anchors.centerIn: parent
- spacing: 16
-
- Rectangle {
- id: normalRect
- width: 60
- height: 60
- radius: 10
- color: "steelblue"
- layer.enabled: true
- layer.effect: DropShadow {
- transparentBorder: false
- horizontalOffset: 8
- verticalOffset: 8
- }
- }
-
- Rectangle {
- id: transparentBorderRect
- width: 60
- height: 60
- radius: 10
- color: "steelblue"
- layer.enabled: true
- layer.effect: DropShadow {
- transparentBorder: true
- horizontalOffset: 8
- verticalOffset: 8
- }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/FastBlur-example.qml b/src/effects/doc/snippets/FastBlur-example.qml
deleted file mode 100644
index 7c4aa94..0000000
--- a/src/effects/doc/snippets/FastBlur-example.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-//! [import]
-import QtGraphicalEffects 1.12
-//! [import]
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- FastBlur {
- anchors.fill: bug
- source: bug
- radius: 32
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/GammaAdjust-example.qml b/src/effects/doc/snippets/GammaAdjust-example.qml
deleted file mode 100644
index f40da80..0000000
--- a/src/effects/doc/snippets/GammaAdjust-example.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- GammaAdjust {
- anchors.fill: bug
- source: bug
- gamma: 0.45
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Glow-example.qml b/src/effects/doc/snippets/Glow-example.qml
deleted file mode 100644
index 1e9cbd5..0000000
--- a/src/effects/doc/snippets/Glow-example.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Rectangle {
- anchors.fill: parent
- color: "black"
- }
-
- Image {
- id: butterfly
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Glow {
- anchors.fill: butterfly
- radius: 8
- color: "white"
- source: butterfly
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/Glow-transparentBorder-example.qml b/src/effects/doc/snippets/Glow-transparentBorder-example.qml
deleted file mode 100644
index 5ae8515..0000000
--- a/src/effects/doc/snippets/Glow-transparentBorder-example.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Rectangle {
- width: 180
- height: 100
-
- Row {
- anchors.centerIn: parent
- spacing: 16
-
- Rectangle {
- id: normalRect
- width: 60
- height: 60
- color: "black"
- radius: 10
- layer.enabled: true
- layer.effect: Glow {
- samples: 15
- color: "blue"
- transparentBorder: false
- }
- }
-
- Rectangle {
- id: transparentBorderRect
- width: 60
- height: 60
- color: "black"
- radius: 10
- layer.enabled: true
- layer.effect: Glow {
- samples: 15
- color: "blue"
- transparentBorder: true
- }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/HueSaturation-example.qml b/src/effects/doc/snippets/HueSaturation-example.qml
deleted file mode 100644
index bd88841..0000000
--- a/src/effects/doc/snippets/HueSaturation-example.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- HueSaturation {
- anchors.fill: bug
- source: bug
- hue: -0.3
- saturation: 0.5
- lightness: -0.1
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/LevelAdjust-example.qml b/src/effects/doc/snippets/LevelAdjust-example.qml
deleted file mode 100644
index e54a4b8..0000000
--- a/src/effects/doc/snippets/LevelAdjust-example.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: butterfly
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- LevelAdjust {
- anchors.fill: butterfly
- source: butterfly
- minimumOutput: "#00ffffff"
- maximumOutput: "#ff000000"
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/LinearGradient-example.qml b/src/effects/doc/snippets/LinearGradient-example.qml
deleted file mode 100644
index 2b3ab27..0000000
--- a/src/effects/doc/snippets/LinearGradient-example.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- LinearGradient {
- anchors.fill: parent
- start: Qt.point(0, 0)
- end: Qt.point(0, 300)
- gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 1.0; color: "black" }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/OpacityMask-example.qml b/src/effects/doc/snippets/OpacityMask-example.qml
deleted file mode 100644
index b8c608c..0000000
--- a/src/effects/doc/snippets/OpacityMask-example.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Image {
- id: mask
- source: "images/butterfly.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- OpacityMask {
- anchors.fill: bug
- source: bug
- maskSource: mask
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/RadialGradient-example.qml b/src/effects/doc/snippets/RadialGradient-example.qml
deleted file mode 100644
index fb3dd10..0000000
--- a/src/effects/doc/snippets/RadialGradient-example.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- RadialGradient {
- anchors.fill: parent
- gradient: Gradient {
- GradientStop { position: 0.0; color: "white" }
- GradientStop { position: 0.5; color: "black" }
- }
- }
-}
-//! [example]
diff --git a/src/effects/doc/snippets/RectangularGlow-example.qml b/src/effects/doc/snippets/RectangularGlow-example.qml
deleted file mode 100644
index 1ced586..0000000
--- a/src/effects/doc/snippets/RectangularGlow-example.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Rectangle {
- id: background
- anchors.fill: parent
- color: "black"
- }
-
- RectangularGlow {
- id: effect
- anchors.fill: rect
- glowRadius: 10
- spread: 0.2
- color: "white"
- cornerRadius: rect.radius + glowRadius
- }
-
- Rectangle {
- id: rect
- color: "black"
- anchors.centerIn: parent
- width: Math.round(parent.width / 1.5)
- height: Math.round(parent.height / 2)
- radius: 25
- }
-}
-//! [example]
-
diff --git a/src/effects/doc/snippets/ThresholdMask-example.qml b/src/effects/doc/snippets/ThresholdMask-example.qml
deleted file mode 100644
index e6ccf46..0000000
--- a/src/effects/doc/snippets/ThresholdMask-example.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [example]
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-Item {
- width: 300
- height: 300
-
- Image {
- id: background
- anchors.fill: parent
- source: "images/checker.png"
- smooth: true
- fillMode: Image.Tile
- }
-
- Image {
- id: bug
- source: "images/bug.jpg"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- Image {
- id: mask
- source: "images/fog.png"
- sourceSize: Qt.size(parent.width, parent.height)
- smooth: true
- visible: false
- }
-
- ThresholdMask {
- anchors.fill: bug
- source: bug
- maskSource: mask
- threshold: 0.4
- spread: 0.2
- }
-}
-//! [example]
diff --git a/src/effects/doc/src/overview-graphicaleffects.qdoc b/src/effects/doc/src/overview-graphicaleffects.qdoc
deleted file mode 100644
index 1011c09..0000000
--- a/src/effects/doc/src/overview-graphicaleffects.qdoc
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
- /*!
- \page graphicaleffects.html
- \title Graphical Effects
- \brief Effects provided by the Qt Graphical Effects API
-
- Effects are visual items that can be added to Qt Quick user interface as UI
- components. To import the Qt Graphical Effects types, include the Qt
- Graphical Effects module by adding the following statement to the QML file:
-
- \qml \QtMinorVersion
- import QtGraphicalEffects 1.\1
- \endqml
-
- To use the effects, simply add a specific effect declaration to the QML
- scene and configure the effects properties. The source item type can be any
- QML type, even video or another effect. Pipelining multiple effects together
- is a simple way to create even more impressive output.
-
- The following list presents the functional division of types that are part
- of Qt Graphical Effects:
-
- \section1 Color
- \annotatedlist qtgraphicaleffects-color
-
- \section1 Gradient
- \annotatedlist qtgraphicaleffects-gradient
-
- \section1 Distortion
- \annotatedlist qtgraphicaleffects-distortion
-
- \section1 Drop Shadow
- \annotatedlist qtgraphicaleffects-drop-shadow
-
- \section1 Blur
- \annotatedlist qtgraphicaleffects-blur
-
- \section1 Glow
- \annotatedlist qtgraphicaleffects-glow
-
- \section1 Mask
- \annotatedlist qtgraphicaleffects-mask
- */
diff --git a/src/effects/doc/src/qtgraphicaleffects.qdoc b/src/effects/doc/src/qtgraphicaleffects.qdoc
deleted file mode 100644
index 0b7c67a..0000000
--- a/src/effects/doc/src/qtgraphicaleffects.qdoc
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlmodule QtGraphicalEffects 1.\QtMinorVersion
- \title Qt Graphical Effect QML Types
- \ingroup qmlmodules
-
- \brief The Qt Graphical Effects module provides a range of stunning
- visual effects that can be applied to Qt Quick applications.
-
- The \l{qtgraphicaleffects-index.html}{Qt Graphical Effects} module provides a set of QML types for
- adding visually impressive and configurable effects to user
- interfaces. Effects are visual items that can be added to Qt Quick
- user interface as UI components.
-
- To use the types in this module, import the module with the following line:
- \qml \QtMinorVersion
- import QtGraphicalEffects 1.\1
- \endqml
-
- \note There are no API changes since version 1.0, so it's OK
- to import version 1.0, or 1.\QtMinorVersion for convenience.
- */
-
-/*!
-\title Qt Graphical Effects
-\page qtgraphicaleffects-index.html
-\brief Qt Graphical Effects module is a Qt Quick Add-On module.
-
-The Qt Graphical Effects module provides a set of QML types for adding visually
-impressive and configurable effects to user interfaces. Effects are visual
-items that can be added to Qt Quick user interface as UI components.
-
-The API consists of over 15 effects provided as separate QML types. The effects
-cover functional areas such as masking, blurring, coloring, and many more.
-
-\section1 Getting Started
-To load Qt Graphical Effects, add the following import statement to your .qml file:
-\snippet FastBlur-example.qml import
-
-To use the effects, simply add a specific effect declaration to the QML scene and
-configure the effects properties. Effects have one or more source properties for
-specifying the visual input for which the effect is applied to. The altered visual
-output is then presented in the effect item itself. The source can be another,
-often hidden, item in the QML scene. More complex effects can have multiple sources.
-The source item type can be any QML type, even video or another effect. Pipelining
-multiple effects together is a simple way to create even more impressive output.
-
-Each effect has a set of properties that can be used to configure the effect output.
-Properties can be animated just like any other QML properties. The QML type
-documentation contains property descriptions and basic usage examples.
-
-\note Effects are not available when running with the \c software
-backend of Qt Quick. For more information on Qt Quick scene graph
-backends, see \l{qtquick-visualcanvas-adaptations.html}{Scene Graph
-Adaptations}.
-
-\section1 Reference
-
-\list
-\li \l {Graphical Effects}{QML Types}
-\endlist
-
-*/
diff --git a/src/effects/effects.pro b/src/effects/effects.pro
deleted file mode 100644
index 32e6d0b..0000000
--- a/src/effects/effects.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-TEMPLATE=subdirs
-SUBDIRS=effects_plugin.pro private
-
diff --git a/src/effects/effects_plugin.pro b/src/effects/effects_plugin.pro
deleted file mode 100644
index 4cfe4e3..0000000
--- a/src/effects/effects_plugin.pro
+++ /dev/null
@@ -1,32 +0,0 @@
-CXX_MODULE = qml
-TARGET = qtgraphicaleffectsplugin
-TARGETPATH = QtGraphicalEffects
-QT += quick qml
-IMPORT_VERSION = 1.$$QT_MINOR_VERSION
-QML_FILES = \
- BrightnessContrast.qml \
- ColorOverlay.qml \
- Colorize.qml \
- ConicalGradient.qml \
- Desaturate.qml \
- Displace.qml \
- DropShadow.qml \
- FastBlur.qml \
- GammaAdjust.qml \
- Glow.qml \
- HueSaturation.qml \
- LevelAdjust.qml \
- LinearGradient.qml \
- OpacityMask.qml \
- RadialGradient.qml \
- RectangularGlow.qml \
- ThresholdMask.qml
-
-# !static: CONFIG += qmlcache
-
-RESOURCES += \
- qtgraphicaleffectsshaders.qrc
-
-QMAKE_DOCS = $$PWD/doc/qtgraphicaleffects.qdocconf
-SOURCES += plugin.cpp
-load(qml_plugin)
diff --git a/src/effects/plugin.cpp b/src/effects/plugin.cpp
deleted file mode 100644
index 84763b7..0000000
--- a/src/effects/plugin.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtQml/qqmlextensionplugin.h>
-#include <QtQml/qqml.h>
-#include <QtQml/qqmlengine.h>
-
-QT_BEGIN_NAMESPACE
-
-class QtGraphicalEffectsPlugin : public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtGraphicalEffectsPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
- void registerTypes(const char *uri) override
- {
- Q_ASSERT(QLatin1String(uri) == QLatin1String("QtGraphicalEffects"));
-
- qmlRegisterModule(uri, 1, 0);
-
- // The minor version used to be the current Qt 5 minor. For compatibility it is the last
- // Qt 5 release.
- qmlRegisterModule(uri, 1, 15);
- }
-};
-
-QT_END_NAMESPACE
-
-#include "plugin.moc"
diff --git a/src/effects/plugins.qmltypes b/src/effects/plugins.qmltypes
deleted file mode 100644
index f805843..0000000
--- a/src/effects/plugins.qmltypes
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick.tooling 1.2
-
-// This file describes the plugin-supplied types contained in the library.
-// It is used for QML tooling purposes only.
-//
-// This file was auto-generated by:
-// 'qmlplugindump -nonrelocatable QtGraphicalEffects 1.15'
-
-Module {
- dependencies: ["QtQuick 2.12", "QtQuick.Window 2.12"]
-}
diff --git a/src/effects/private/.prev_CMakeLists.txt b/src/effects/private/.prev_CMakeLists.txt
deleted file mode 100644
index aba6f59..0000000
--- a/src/effects/private/.prev_CMakeLists.txt
+++ /dev/null
@@ -1,73 +0,0 @@
-# Generated from private.pro.
-
-#####################################################################
-## qtgraphicaleffectsprivate Plugin:
-#####################################################################
-
-qt_add_qml_module(qtgraphicaleffectsprivate
- URI "QtGraphicalEffects.private"
- VERSION "${CMAKE_PROJECT_VERSION}"
- CLASSNAME QtGraphicalEffectsPrivatePlugin
- SOURCES
- plugin.cpp
- qgfxshaderbuilder.cpp qgfxshaderbuilder_p.h
- qgfxsourceproxy.cpp qgfxsourceproxy_p.h
- PUBLIC_LIBRARIES
- Qt::Core
- Qt::CorePrivate
- Qt::Gui
- Qt::GuiPrivate
- Qt::Qml
- Qt::QmlPrivate
- Qt::Quick
- Qt::QuickPrivate
-)
-
-#### Keys ignored in scope 1:.:.:private.pro:<TRUE>:
-# CXX_MODULE = "qml"
-# QML_FILES = "DropShadowBase.qml" "FastGlow.qml" "FastInnerShadow.qml" "FastMaskedBlur.qml" "GaussianDirectionalBlur.qml" "GaussianGlow.qml" "GaussianInnerShadow.qml" "GaussianMaskedBlur.qml"
-# QML_IMPORT_VERSION = "$$QT_VERSION"
-# TARGETPATH = "QtGraphicalEffects/private"
-
-## Scopes:
-#####################################################################
-
-set(qml_files
- "DropShadowBase.qml"
- "FastGlow.qml"
- "FastInnerShadow.qml"
- "FastMaskedBlur.qml"
- "GaussianDirectionalBlur.qml"
- "GaussianGlow.qml"
- "GaussianInnerShadow.qml"
- "GaussianMaskedBlur.qml"
-)
-set_source_files_properties(DropShadowBase.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(FastGlow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(FastInnerShadow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(FastMaskedBlur.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GaussianDirectionalBlur.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GaussianGlow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GaussianInnerShadow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-set_source_files_properties(GaussianMaskedBlur.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-
-qt6_target_qml_files(qtgraphicaleffectsprivate
- FILES
- ${qml_files}
-)
diff --git a/src/effects/private/CMakeLists.txt b/src/effects/private/CMakeLists.txt
deleted file mode 100644
index b8e0e5b..0000000
--- a/src/effects/private/CMakeLists.txt
+++ /dev/null
@@ -1,44 +0,0 @@
-# Generated from private.pro.
-
-#####################################################################
-## qtgraphicaleffectsprivate Plugin:
-#####################################################################
-
-qt_internal_add_qml_module(qtgraphicaleffectsprivate
- URI "QtGraphicalEffects.private"
- VERSION "${CMAKE_PROJECT_VERSION}"
- CLASSNAME QtGraphicalEffectsPrivatePlugin
- SOURCES
- plugin.cpp
- qgfxsourceproxy.cpp qgfxsourceproxy_p.h
- PUBLIC_LIBRARIES
- Qt::Core
- Qt::CorePrivate
- Qt::Gui
- Qt::GuiPrivate
- Qt::Qml
- Qt::QmlPrivate
- Qt::Quick
- Qt::QuickPrivate
-)
-
-#### Keys ignored in scope 1:.:.:private.pro:<TRUE>:
-# CXX_MODULE = "qml"
-# QML_FILES = "FastGlow.qml"
-# QML_IMPORT_VERSION = "$$QT_VERSION"
-# TARGETPATH = "QtGraphicalEffects/private"
-
-## Scopes:
-#####################################################################
-
-set(qml_files
- "FastGlow.qml"
-)
-set_source_files_properties(FastGlow.qml PROPERTIES
- QT_QML_SOURCE_VERSION "1.0"
-)
-
-qt6_target_qml_files(qtgraphicaleffectsprivate
- FILES
- ${qml_files}
-)
diff --git a/src/effects/private/FastGlow.qml b/src/effects/private/FastGlow.qml
deleted file mode 100644
index 896dcae..0000000
--- a/src/effects/private/FastGlow.qml
+++ /dev/null
@@ -1,342 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects.private 1.12
-
-Item {
- id: rootItem
- property variant source
- property real spread: 0.0
- property real blur: 0.0
- property color color: "white"
- property bool transparentBorder: false
- property bool cached: false
-
- SourceProxy {
- id: sourceProxy
- input: rootItem.source
- }
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: shaderItem
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- property string __internalBlurVertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.vert.qsb"
-
- property string __internalBlurFragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.frag.qsb"
-
- ShaderEffect {
- id: level0
- property variant source: sourceProxy.output
- anchors.fill: parent
- visible: false
- smooth: true
- }
-
- ShaderEffectSource {
- id: level1
- width: Math.ceil(shaderItem.width / 32) * 32
- height: Math.ceil(shaderItem.height / 32) * 32
- sourceItem: level0
- hideSource: rootItem.visible
- sourceRect: transparentBorder ? Qt.rect(-64, -64, shaderItem.width, shaderItem.height) : Qt.rect(0,0,0,0)
- smooth: true
- visible: false
- }
-
- ShaderEffect {
- id: effect1
- property variant source: level1
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level2
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level2
- width: level1.width / 2
- height: level1.height / 2
- sourceItem: effect1
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect2
- property variant source: level2
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level3
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level3
- width: level2.width / 2
- height: level2.height / 2
- sourceItem: effect2
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect3
- property variant source: level3
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level4
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level4
- width: level3.width / 2
- height: level3.height / 2
- sourceItem: effect3
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect4
- property variant source: level4
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level5
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level5
- width: level4.width / 2
- height: level4.height / 2
- sourceItem: effect4
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- ShaderEffect {
- id: effect5
- property variant source: level5
- property real yStep: 1/height
- property real xStep: 1/width
- anchors.fill: level6
- visible: false
- smooth: true
- vertexShader: __internalBlurVertexShader
- fragmentShader: __internalBlurFragmentShader
- }
-
- ShaderEffectSource {
- id: level6
- width: level5.width / 2
- height: level5.height / 2
- sourceItem: effect5
- hideSource: rootItem.visible
- visible: false
- smooth: true
- }
-
- Item {
- id: dummysource
- width: 1
- height: 1
- visible: false
- }
-
- ShaderEffectSource {
- id: dummy
- width: 1
- height: 1
- sourceItem: dummysource
- visible: false
- smooth: false
- live: false
- }
-
- ShaderEffect {
- id: shaderItem
- x: transparentBorder ? -64 : 0
- y: transparentBorder ? -64 : 0
- width: transparentBorder ? parent.width + 128 : parent.width
- height: transparentBorder ? parent.height + 128 : parent.height
-
- property variant source1: level1
- property variant source2: level2
- property variant source3: level3
- property variant source4: level4
- property variant source5: level5
- property variant source6: level6
- property real lod: rootItem.blur
-
- property real weight1;
- property real weight2;
- property real weight3;
- property real weight4;
- property real weight5;
- property real weight6;
-
- property real spread: 1.0 - (rootItem.spread * 0.98)
- property alias color: rootItem.color
-
- function weight(v) {
- if (v <= 0.0)
- return 1
- if (v >= 0.5)
- return 0
-
- return 1.0 - v / 0.5
- }
-
- function calculateWeights() {
-
- var w1 = weight(Math.abs(lod - 0.100))
- var w2 = weight(Math.abs(lod - 0.300))
- var w3 = weight(Math.abs(lod - 0.500))
- var w4 = weight(Math.abs(lod - 0.700))
- var w5 = weight(Math.abs(lod - 0.900))
- var w6 = weight(Math.abs(lod - 1.100))
-
- var sum = w1 + w2 + w3 + w4 + w5 + w6;
- weight1 = w1 / sum;
- weight2 = w2 / sum;
- weight3 = w3 / sum;
- weight4 = w4 / sum;
- weight5 = w5 / sum;
- weight6 = w6 / sum;
-
- upateSources()
- }
-
- function upateSources() {
- var sources = new Array();
- var weights = new Array();
-
- if (weight1 > 0) {
- sources.push(level1)
- weights.push(weight1)
- }
-
- if (weight2 > 0) {
- sources.push(level2)
- weights.push(weight2)
- }
-
- if (weight3 > 0) {
- sources.push(level3)
- weights.push(weight3)
- }
-
- if (weight4 > 0) {
- sources.push(level4)
- weights.push(weight4)
- }
-
- if (weight5 > 0) {
- sources.push(level5)
- weights.push(weight5)
- }
-
- if (weight6 > 0) {
- sources.push(level6)
- weights.push(weight6)
- }
-
- for (var j = sources.length; j < 6; j++) {
- sources.push(dummy)
- weights.push(0.0)
- }
-
- source1 = sources[0]
- source2 = sources[1]
- source3 = sources[2]
- source4 = sources[3]
- source5 = sources[4]
- source6 = sources[5]
-
- weight1 = weights[0]
- weight2 = weights[1]
- weight3 = weights[2]
- weight4 = weights[3]
- weight5 = weights[4]
- weight6 = weights[5]
- }
-
- Component.onCompleted: calculateWeights()
-
- onLodChanged: calculateWeights()
-
- fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastglow.frag.qsb"
- }
-}
diff --git a/src/effects/private/plugin.cpp b/src/effects/private/plugin.cpp
deleted file mode 100644
index c03926c..0000000
--- a/src/effects/private/plugin.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtQml/qqmlextensionplugin.h>
-#include <QtQml/qqml.h>
-#include <QtQml/qqmlengine.h>
-
-#include "qgfxsourceproxy_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QtGraphicalEffectsPrivatePlugin : public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtGraphicalEffectsPrivatePlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
- void registerTypes(const char *uri) override
- {
- Q_ASSERT(QByteArray(uri) == QByteArrayLiteral("QtGraphicalEffects.private"));
- qmlRegisterType<QGfxSourceProxy>(uri, 1, 0, "SourceProxy");
-
- // The minor version used to be the current Qt 5 minor. For compatibility it is the last
- // Qt 5 release.
- qmlRegisterModule(uri, 1, 15);
- }
-};
-
-QT_END_NAMESPACE
-
-#include "plugin.moc"
diff --git a/src/effects/private/private.pro b/src/effects/private/private.pro
deleted file mode 100644
index b8d162a..0000000
--- a/src/effects/private/private.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-CXX_MODULE=qml
-TARGETPATH=QtGraphicalEffects/private
-TARGET = qtgraphicaleffectsprivate
-QML_IMPORT_VERSION = $$QT_VERSION
-
-QT += quick qml
-# Needed to get a hold of QQuickShaderEffectSource, QQuickImage and QQuickItemPrivate
-QT += quick-private gui-private core-private qml-private
-
-SOURCES += plugin.cpp \
- qgfxsourceproxy.cpp
-
-HEADERS += \
- qgfxsourceproxy_p.h
-
-QML_FILES = \
- FastGlow.qml
-
-!static: CONFIG += qmlcache
-
-load(qml_plugin)
diff --git a/src/effects/private/qgfxsourceproxy.cpp b/src/effects/private/qgfxsourceproxy.cpp
deleted file mode 100644
index cf64807..0000000
--- a/src/effects/private/qgfxsourceproxy.cpp
+++ /dev/null
@@ -1,216 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "qgfxsourceproxy_p.h"
-
-#include <private/qquickshadereffectsource_p.h>
-#include <private/qquickitem_p.h>
-#include <private/qquickimage_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QGfxSourceProxy::QGfxSourceProxy(QQuickItem *parentItem)
- : QQuickItem(parentItem)
- , m_input(0)
- , m_output(0)
- , m_proxy(0)
- , m_interpolation(AnyInterpolation)
-{
-}
-
-QGfxSourceProxy::~QGfxSourceProxy()
-{
- delete m_proxy;
-}
-
-void QGfxSourceProxy::setInput(QQuickItem *input)
-{
- if (m_input == input)
- return;
-
- if (m_input != nullptr)
- disconnect(m_input, nullptr, this, nullptr);
- m_input = input;
- polish();
- if (m_input != nullptr) {
- if (QQuickImage *image = qobject_cast<QQuickImage *>(m_input)) {
- connect(image, &QQuickImage::sourceSizeChanged, this, &QGfxSourceProxy::repolish);
- connect(image, &QQuickImage::fillModeChanged, this, &QGfxSourceProxy::repolish);
- }
- connect(m_input, &QQuickItem::childrenChanged, this, &QGfxSourceProxy::repolish);
- }
- emit inputChanged();
-}
-
-void QGfxSourceProxy::setOutput(QQuickItem *output)
-{
- if (m_output == output)
- return;
- m_output = output;
- emit activeChanged();
- emit outputChanged();
-}
-
-void QGfxSourceProxy::setSourceRect(const QRectF &sourceRect)
-{
- if (m_sourceRect == sourceRect)
- return;
- m_sourceRect = sourceRect;
- polish();
- emit sourceRectChanged();
-}
-
-void QGfxSourceProxy::setInterpolation(Interpolation i)
-{
- if (m_interpolation == i)
- return;
- m_interpolation = i;
- polish();
- emit interpolationChanged();
-}
-
-
-void QGfxSourceProxy::useProxy()
-{
- if (!m_proxy)
- m_proxy = new QQuickShaderEffectSource(this);
- m_proxy->setSourceRect(m_sourceRect);
- m_proxy->setSourceItem(m_input);
- m_proxy->setSmooth(m_interpolation != NearestInterpolation);
- setOutput(m_proxy);
-}
-
-void QGfxSourceProxy::repolish()
-{
- polish();
-}
-
-QObject *QGfxSourceProxy::findLayer(QQuickItem *item)
-{
- if (!item)
- return 0;
- QQuickItemPrivate *d = QQuickItemPrivate::get(item);
- if (d->extra.isAllocated() && d->extra->layer) {
- QObject *layer = qvariant_cast<QObject *>(item->property("layer"));
- if (layer && layer->property("enabled").toBool())
- return layer;
- }
- return 0;
-}
-
-void QGfxSourceProxy::updatePolish()
-{
- if (m_input == 0) {
- setOutput(0);
- return;
- }
-
- QQuickImage *image = qobject_cast<QQuickImage *>(m_input);
- QQuickShaderEffectSource *shaderSource = qobject_cast<QQuickShaderEffectSource *>(m_input);
- bool childless = m_input->childItems().size() == 0;
- bool interpOk = m_interpolation == AnyInterpolation
- || (m_interpolation == LinearInterpolation && m_input->smooth() == true)
- || (m_interpolation == NearestInterpolation && m_input->smooth() == false);
-
- // Layers can be used in two different ways. Option 1 is when the item is
- // used as input to a separate ShaderEffect component. In this case,
- // m_input will be the item itself.
- QObject *layer = findLayer(m_input);
- if (!layer && shaderSource) {
- // Alternatively, the effect is applied via layer.effect, and the
- // input to the effect will be the layer's internal ShaderEffectSource
- // item. In this case, we need to backtrack and find the item that has
- // the layer and configure it accordingly.
- layer = findLayer(shaderSource->sourceItem());
- }
-
- // A bit crude test, but we're only using source rect for
- // blurring+transparent edge, so this is good enough.
- bool padded = m_sourceRect.x() < 0 || m_sourceRect.y() < 0;
-
- bool direct = false;
-
- if (layer) {
- // Auto-configure the layer so interpolation and padding works as
- // expected without allocating additional FBOs. In edgecases, where
- // this feature is undesiered, the user can simply use
- // ShaderEffectSource rather than layer.
- layer->setProperty("sourceRect", m_sourceRect);
- layer->setProperty("smooth", m_interpolation != NearestInterpolation);
- direct = true;
-
- } else if (childless && interpOk) {
-
- if (shaderSource) {
- if (shaderSource->sourceRect() == m_sourceRect || m_sourceRect.isEmpty())
- direct = true;
-
- } else if (!padded && ((image && image->fillMode() == QQuickImage::Stretch && !image->sourceSize().isNull())
- || (!image && m_input->isTextureProvider())
- )
- ) {
- direct = true;
- }
- }
-
- if (direct) {
- setOutput(m_input);
- } else {
- useProxy();
- }
-
- // Remove the proxy if it is not in use..
- if (m_proxy && m_output == m_input) {
- delete m_proxy;
- m_proxy = 0;
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/effects/private/qgfxsourceproxy_p.h b/src/effects/private/qgfxsourceproxy_p.h
deleted file mode 100644
index 8fe592c..0000000
--- a/src/effects/private/qgfxsourceproxy_p.h
+++ /dev/null
@@ -1,125 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QGFXSOURCEPROXY_P_H
-#define QGFXSOURCEPROXY_P_H
-
-#include <QtQuick/QQuickItem>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickShaderEffectSource;
-
-class QGfxSourceProxy : public QQuickItem
-{
- Q_OBJECT
-
- Q_PROPERTY(QQuickItem *input READ input WRITE setInput NOTIFY inputChanged RESET resetInput)
- Q_PROPERTY(QQuickItem *output READ output NOTIFY outputChanged)
- Q_PROPERTY(QRectF sourceRect READ sourceRect WRITE setSourceRect NOTIFY sourceRectChanged)
-
- Q_PROPERTY(bool active READ isActive NOTIFY activeChanged)
- Q_PROPERTY(Interpolation interpolation READ interpolation WRITE setInterpolation NOTIFY interpolationChanged)
-
- Q_ENUMS(Interpolation)
-
-public:
- enum Interpolation {
- AnyInterpolation,
- NearestInterpolation,
- LinearInterpolation
- };
-
- QGfxSourceProxy(QQuickItem *item = 0);
- ~QGfxSourceProxy();
-
- QQuickItem *input() const { return m_input; }
- void setInput(QQuickItem *input);
- void resetInput() { setInput(0); }
-
- QQuickItem *output() const { return m_output; }
-
- QRectF sourceRect() const { return m_sourceRect; }
- void setSourceRect(const QRectF &sourceRect);
-
- bool isActive() const { return m_output && m_output != m_input; }
-
- void setInterpolation(Interpolation i);
- Interpolation interpolation() const { return m_interpolation; }
-
-protected:
- void updatePolish() override;
-
-signals:
- void inputChanged();
- void outputChanged();
- void sourceRectChanged();
- void activeChanged();
- void interpolationChanged();
-
-private slots:
- void repolish();
-
-private:
- void setOutput(QQuickItem *output);
- void useProxy();
- static QObject *findLayer(QQuickItem *);
-
- QRectF m_sourceRect;
- QQuickItem *m_input;
- QQuickItem *m_output;
- QQuickShaderEffectSource *m_proxy;
-
- Interpolation m_interpolation;
-};
-
-QT_END_NAMESPACE
-
-#endif // QGFXSOURCEPROXY_P_H
diff --git a/src/effects/private/qmldir b/src/effects/private/qmldir
deleted file mode 100644
index da46a25..0000000
--- a/src/effects/private/qmldir
+++ /dev/null
@@ -1,4 +0,0 @@
-module QtGraphicalEffects.private
-plugin qtgraphicaleffectsprivate
-classname QtGraphicalEffectsPrivatePlugin
-FastGlow 1.0 FastGlow.qml
diff --git a/src/effects/qmldir b/src/effects/qmldir
deleted file mode 100644
index c0b4dbe..0000000
--- a/src/effects/qmldir
+++ /dev/null
@@ -1,23 +0,0 @@
-module QtGraphicalEffects
-plugin qtgraphicaleffectsplugin
-classname QtGraphicalEffectsPlugin
-BrightnessContrast 1.0 BrightnessContrast.qml
-Colorize 1.0 Colorize.qml
-ColorOverlay 1.0 ColorOverlay.qml
-ConicalGradient 1.0 ConicalGradient.qml
-Desaturate 1.0 Desaturate.qml
-Displace 1.0 Displace.qml
-DropShadow 1.0 DropShadow.qml
-FastBlur 1.0 FastBlur.qml
-GammaAdjust 1.0 GammaAdjust.qml
-Glow 1.0 Glow.qml
-HueSaturation 1.0 HueSaturation.qml
-LevelAdjust 1.0 LevelAdjust.qml
-LinearGradient 1.0 LinearGradient.qml
-OpacityMask 1.0 OpacityMask.qml
-RadialGradient 1.0 RadialGradient.qml
-RectangularGlow 1.0 RectangularGlow.qml
-ThresholdMask 1.0 ThresholdMask.qml
-designersupported
-depends QtGraphicalEffects/private 1.0
-depends QtQuick.Window 2.1
diff --git a/src/effects/qtgraphicaleffectsshaders.qrc b/src/effects/qtgraphicaleffectsshaders.qrc
deleted file mode 100644
index 169f190..0000000
--- a/src/effects/qtgraphicaleffectsshaders.qrc
+++ /dev/null
@@ -1,28 +0,0 @@
-<RCC>
- <qresource prefix="/qt-project.org/imports/QtGraphicalEffects">
- <file>shaders_ng/opacitymask.frag.qsb</file>
- <file>shaders_ng/opacitymask_invert.frag.qsb</file>
- <file>shaders_ng/fastblur.frag.qsb</file>
- <file>shaders_ng/fastblur_internal.vert.qsb</file>
- <file>shaders_ng/fastblur_internal.frag.qsb</file>
- <file>shaders_ng/fastglow.frag.qsb</file>
- <file>shaders_ng/colorize.frag.qsb</file>
- <file>shaders_ng/brightnesscontrast.frag.qsb</file>
- <file>shaders_ng/coloroverlay.frag.qsb</file>
- <file>shaders_ng/desaturate.frag.qsb</file>
- <file>shaders_ng/displace.frag.qsb</file>
- <file>shaders_ng/gammaadjust.frag.qsb</file>
- <file>shaders_ng/huesaturation.frag.qsb</file>
- <file>shaders_ng/rectangularglow.frag.qsb</file>
- <file>shaders_ng/thresholdmask.frag.qsb</file>
- <file>shaders_ng/conicalgradient_nomask.frag.qsb</file>
- <file>shaders_ng/conicalgradient_mask.frag.qsb</file>
- <file>shaders_ng/lineargradient.vert.qsb</file>
- <file>shaders_ng/lineargradient_nomask.frag.qsb</file>
- <file>shaders_ng/lineargradient_mask.frag.qsb</file>
- <file>shaders_ng/radialgradient_nomask.frag.qsb</file>
- <file>shaders_ng/radialgradient_mask.frag.qsb</file>
- <file>shaders_ng/radialgradient.vert.qsb</file>
- <file>shaders_ng/leveladjust.frag.qsb</file>
- </qresource>
-</RCC>
diff --git a/src/effects/shaders_ng/brightnesscontrast.frag b/src/effects/shaders_ng/brightnesscontrast.frag
deleted file mode 100644
index c9ae173..0000000
--- a/src/effects/shaders_ng/brightnesscontrast.frag
+++ /dev/null
@@ -1,26 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float brightness;
- float contrast;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- vec4 pixelColor = texture(source, qt_TexCoord0);
- pixelColor.rgb /= max(1.0/256.0, pixelColor.a);
- float c = 1.0 + contrast;
- float contrastGainFactor = 1.0 + c * c * c * c * step(0.0, contrast);
- pixelColor.rgb = ((pixelColor.rgb - 0.5) * (contrastGainFactor * contrast + 1.0)) + 0.5;
- pixelColor.rgb = mix(pixelColor.rgb, vec3(step(0.0, brightness)), abs(brightness));
- fragColor = vec4(pixelColor.rgb * pixelColor.a, pixelColor.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/brightnesscontrast.frag.qsb b/src/effects/shaders_ng/brightnesscontrast.frag.qsb
deleted file mode 100644
index 2fc9761..0000000
--- a/src/effects/shaders_ng/brightnesscontrast.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/colorize.frag b/src/effects/shaders_ng/colorize.frag
deleted file mode 100644
index a109a45..0000000
--- a/src/effects/shaders_ng/colorize.frag
+++ /dev/null
@@ -1,72 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float hue;
- float saturation;
- float lightness;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-float RGBtoL(vec3 color)
-{
- float cmin = min(color.r, min(color.g, color.b));
- float cmax = max(color.r, max(color.g, color.b));
- float l = (cmin + cmax) / 2.0;
- return l;
-}
-
-float hueToIntensity(float v1, float v2, float h)
-{
- h = fract(h);
- if (h < 1.0 / 6.0)
- return v1 + (v2 - v1) * 6.0 * h;
- else if (h < 1.0 / 2.0)
- return v2;
- else if (h < 2.0 / 3.0)
- return v1 + (v2 - v1) * 6.0 * (2.0 / 3.0 - h);
-
- return v1;
-}
-
-vec3 HSLtoRGB(vec3 color)
-{
- float h = color.x;
- float l = color.z;
- float s = color.y;
-
- if (s < 1.0 / 256.0)
- return vec3(l, l, l);
-
- float v1;
- float v2;
- if (l < 0.5)
- v2 = l * (1.0 + s);
- else
- v2 = (l + s) - (s * l);
-
- v1 = 2.0 * l - v2;
-
- float d = 1.0 / 3.0;
- float r = hueToIntensity(v1, v2, h + d);
- float g = hueToIntensity(v1, v2, h);
- float b = hueToIntensity(v1, v2, h - d);
- return vec3(r, g, b);
-}
-
-void main()
-{
- vec4 samp = texture(source, qt_TexCoord0);
- samp = vec4(samp.rgb / max(1.0/256.0, samp.a), samp.a);
- float light = RGBtoL(samp.rgb);
- float c = step(0.0, lightness);
- samp.rgb = HSLtoRGB(vec3(hue, saturation, mix(light, c, abs(lightness))));
- fragColor = vec4(samp.rgb * samp.a, samp.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/colorize.frag.qsb b/src/effects/shaders_ng/colorize.frag.qsb
deleted file mode 100644
index eb55cb3..0000000
--- a/src/effects/shaders_ng/colorize.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/coloroverlay.frag b/src/effects/shaders_ng/coloroverlay.frag
deleted file mode 100644
index 5ec1666..0000000
--- a/src/effects/shaders_ng/coloroverlay.frag
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec4 color;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- vec4 pixelColor = texture(source, qt_TexCoord0);
- fragColor = vec4(mix(pixelColor.rgb/max(pixelColor.a, 0.00390625), color.rgb/max(color.a, 0.00390625), color.a) * pixelColor.a, pixelColor.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/coloroverlay.frag.qsb b/src/effects/shaders_ng/coloroverlay.frag.qsb
deleted file mode 100644
index e1eb955..0000000
--- a/src/effects/shaders_ng/coloroverlay.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/compile.bat b/src/effects/shaders_ng/compile.bat
deleted file mode 100644
index 9eafc03..0000000
--- a/src/effects/shaders_ng/compile.bat
+++ /dev/null
@@ -1,77 +0,0 @@
-:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-::
-:: Copyright (C) 2020 The Qt Company Ltd.
-:: Contact: https://www.qt.io/licensing/
-::
-:: This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-::
-:: $QT_BEGIN_LICENSE:BSD$
-:: Commercial License Usage
-:: Licensees holding valid commercial Qt licenses may use this file in
-:: accordance with the commercial license agreement provided with the
-:: Software or, alternatively, in accordance with the terms contained in
-:: a written agreement between you and The Qt Company. For licensing terms
-:: and conditions see https://www.qt.io/terms-conditions. For further
-:: information use the contact form at https://www.qt.io/contact-us.
-::
-:: BSD License Usage
-:: Alternatively, you may use this file under the terms of the BSD license
-:: as follows:
-::
-:: "Redistribution and use in source and binary forms, with or without
-:: modification, are permitted provided that the following conditions are
-:: met:
-:: * Redistributions of source code must retain the above copyright
-:: notice, this list of conditions and the following disclaimer.
-:: * Redistributions in binary form must reproduce the above copyright
-:: notice, this list of conditions and the following disclaimer in
-:: the documentation and/or other materials provided with the
-:: distribution.
-:: * Neither the name of The Qt Company Ltd nor the names of its
-:: contributors may be used to endorse or promote products derived
-:: from this software without specific prior written permission.
-::
-::
-:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-:: "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-:: LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-:: A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-:: OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-:: LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-:: DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-:: THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-:: (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-:: OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-::
-:: $QT_END_LICENSE$
-::
-::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::/
-
-:: For HLSL we invoke fxc.exe (-c argument) and store the resulting intermediate format
-:: instead of HLSL source, so this needs to be run on Windows from a developer command prompt.
-
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o opacitymask.frag.qsb opacitymask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o opacitymask_invert.frag.qsb opacitymask_invert.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o fastblur.frag.qsb fastblur.frag
-qsb -b --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o fastblur_internal.vert.qsb fastblur_internal.vert
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o fastblur_internal.frag.qsb fastblur_internal.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o fastglow.frag.qsb fastglow.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o colorize.frag.qsb colorize.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o brightnesscontrast.frag.qsb brightnesscontrast.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o coloroverlay.frag.qsb coloroverlay.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o desaturate.frag.qsb desaturate.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o displace.frag.qsb displace.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o gammaadjust.frag.qsb gammaadjust.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o huesaturation.frag.qsb huesaturation.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o rectangularglow.frag.qsb rectangularglow.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o thresholdmask.frag.qsb thresholdmask.frag
-qsb -b --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o lineargradient.vert.qsb lineargradient.vert
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o lineargradient_nomask.frag.qsb lineargradient_nomask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o lineargradient_mask.frag.qsb lineargradient_mask.frag
-qsb -b --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o radialgradient.vert.qsb radialgradient.vert
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o radialgradient_nomask.frag.qsb radialgradient_nomask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o radialgradient_mask.frag.qsb radialgradient_mask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o conicalgradient_nomask.frag.qsb conicalgradient_nomask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o conicalgradient_mask.frag.qsb conicalgradient_mask.frag
-qsb --glsl "150,120,100 es" --hlsl 50 -c --msl 12 -o leveladjust.frag.qsb leveladjust.frag
diff --git a/src/effects/shaders_ng/conicalgradient_mask.frag b/src/effects/shaders_ng/conicalgradient_mask.frag
deleted file mode 100644
index 5c1f2ed..0000000
--- a/src/effects/shaders_ng/conicalgradient_mask.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- float startAngle;
-};
-
-layout(binding = 1) uniform sampler2D gradientSource;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- float maskAlpha = texture(maskSource, qt_TexCoord0).a;
- const float PI = 3.14159265;
- const float PIx2inv = 0.1591549;
- float a = (atan((center.y - qt_TexCoord0.t), (center.x - qt_TexCoord0.s)) + PI - startAngle) * PIx2inv;
- fragColor = texture(gradientSource, vec2(0.0, fract(a))) * maskAlpha * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/conicalgradient_mask.frag.qsb b/src/effects/shaders_ng/conicalgradient_mask.frag.qsb
deleted file mode 100644
index f0ce8e7..0000000
--- a/src/effects/shaders_ng/conicalgradient_mask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/conicalgradient_nomask.frag b/src/effects/shaders_ng/conicalgradient_nomask.frag
deleted file mode 100644
index b63d7e6..0000000
--- a/src/effects/shaders_ng/conicalgradient_nomask.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- float startAngle;
-};
-
-layout(binding = 1) uniform sampler2D gradientSource;
-
-void main()
-{
- const float PI = 3.14159265;
- const float PIx2inv = 0.1591549;
- float a = (atan((center.y - qt_TexCoord0.t), (center.x - qt_TexCoord0.s)) + PI - startAngle) * PIx2inv;
- fragColor = texture(gradientSource, vec2(0.0, fract(a))) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/conicalgradient_nomask.frag.qsb b/src/effects/shaders_ng/conicalgradient_nomask.frag.qsb
deleted file mode 100644
index d074e61..0000000
--- a/src/effects/shaders_ng/conicalgradient_nomask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/desaturate.frag b/src/effects/shaders_ng/desaturate.frag
deleted file mode 100644
index b54b3ac..0000000
--- a/src/effects/shaders_ng/desaturate.frag
+++ /dev/null
@@ -1,21 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float desaturation;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main(void)
-{
- vec4 textureColor = texture(source, qt_TexCoord0.st);
- float grayColor = (textureColor.r + textureColor.g + textureColor.b) / 3.0;
- fragColor = mix(textureColor, vec4(vec3(grayColor), textureColor.a), desaturation) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/desaturate.frag.qsb b/src/effects/shaders_ng/desaturate.frag.qsb
deleted file mode 100644
index 8a0b4da..0000000
--- a/src/effects/shaders_ng/desaturate.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/displace.frag b/src/effects/shaders_ng/displace.frag
deleted file mode 100644
index df6bc78..0000000
--- a/src/effects/shaders_ng/displace.frag
+++ /dev/null
@@ -1,39 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float displacement;
- float xPixel;
- float yPixel;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D displacementSource;
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- vec4 offset = texture(displacementSource, qt_TexCoord0);
- offset.xy -= vec2(0.5, 0.5);
- offset.xy = offset.xy * step(vec2(1.0/256.0), abs(offset.xy));
- vec2 tx = qt_TexCoord0 + (vec2(-offset.x, offset.y) * displacement);
-
- float e1 = linearstep(0.0, xPixel, tx.x);
- float e2 = linearstep(0.0, yPixel, tx.y);
- float e3 = 1.0 - linearstep(1.0, 1.0 + xPixel, tx.x);
- float e4 = 1.0 - linearstep(1.0, 1.0 + yPixel, tx.y);
-
- vec4 samp = texture(source, tx);
- samp.rgb *= e1 * e2 * e3 * e4;
- fragColor = samp * qt_Opacity * offset.a;
-}
diff --git a/src/effects/shaders_ng/displace.frag.qsb b/src/effects/shaders_ng/displace.frag.qsb
deleted file mode 100644
index 3c3656c..0000000
--- a/src/effects/shaders_ng/displace.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/fastblur.frag b/src/effects/shaders_ng/fastblur.frag
deleted file mode 100644
index 6e2ca14..0000000
--- a/src/effects/shaders_ng/fastblur.frag
+++ /dev/null
@@ -1,32 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float weight1;
- float weight2;
- float weight3;
- float weight4;
- float weight5;
-};
-
-layout(binding = 1) uniform sampler2D source1;
-layout(binding = 2) uniform sampler2D source2;
-layout(binding = 3) uniform sampler2D source3;
-layout(binding = 4) uniform sampler2D source4;
-layout(binding = 5) uniform sampler2D source5;
-
-void main()
-{
- vec4 sourceColor = texture(source1, qt_TexCoord0) * weight1;
- sourceColor += texture(source2, qt_TexCoord0) * weight2;
- sourceColor += texture(source3, qt_TexCoord0) * weight3;
- sourceColor += texture(source4, qt_TexCoord0) * weight4;
- sourceColor += texture(source5, qt_TexCoord0) * weight5;
- fragColor = sourceColor * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/fastblur.frag.qsb b/src/effects/shaders_ng/fastblur.frag.qsb
deleted file mode 100644
index 24c623a..0000000
--- a/src/effects/shaders_ng/fastblur.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/fastblur_internal.frag b/src/effects/shaders_ng/fastblur_internal.frag
deleted file mode 100644
index 7a608de..0000000
--- a/src/effects/shaders_ng/fastblur_internal.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 2) in vec2 qt_TexCoord2;
-layout(location = 3) in vec2 qt_TexCoord3;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- float xStep;
- float yStep;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- vec4 sourceColor = (texture(source, qt_TexCoord0) +
- texture(source, qt_TexCoord1) +
- texture(source, qt_TexCoord2) +
- texture(source, qt_TexCoord3)) * 0.25;
- fragColor = sourceColor * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/fastblur_internal.frag.qsb b/src/effects/shaders_ng/fastblur_internal.frag.qsb
deleted file mode 100644
index fd439c8..0000000
--- a/src/effects/shaders_ng/fastblur_internal.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/fastblur_internal.vert b/src/effects/shaders_ng/fastblur_internal.vert
deleted file mode 100644
index e9a14b0..0000000
--- a/src/effects/shaders_ng/fastblur_internal.vert
+++ /dev/null
@@ -1,27 +0,0 @@
-#version 440
-
-layout(location = 0) in vec4 qt_Vertex;
-layout(location = 1) in vec2 qt_MultiTexCoord0;
-
-layout(location = 0) out vec2 qt_TexCoord0;
-layout(location = 1) out vec2 qt_TexCoord1;
-layout(location = 2) out vec2 qt_TexCoord2;
-layout(location = 3) out vec2 qt_TexCoord3;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- float xStep;
- float yStep;
-};
-
-out gl_PerVertex { vec4 gl_Position; };
-
-void main()
-{
- qt_TexCoord0 = vec2(qt_MultiTexCoord0.x + xStep, qt_MultiTexCoord0.y + yStep * 0.36);
- qt_TexCoord1 = vec2(qt_MultiTexCoord0.x + xStep * 0.36, qt_MultiTexCoord0.y - yStep);
- qt_TexCoord2 = vec2(qt_MultiTexCoord0.x - xStep * 0.36, qt_MultiTexCoord0.y + yStep);
- qt_TexCoord3 = vec2(qt_MultiTexCoord0.x - xStep, qt_MultiTexCoord0.y - yStep * 0.36);
- gl_Position = qt_Matrix * qt_Vertex;
-}
diff --git a/src/effects/shaders_ng/fastblur_internal.vert.qsb b/src/effects/shaders_ng/fastblur_internal.vert.qsb
deleted file mode 100644
index 96781b8..0000000
--- a/src/effects/shaders_ng/fastblur_internal.vert.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/fastglow.frag b/src/effects/shaders_ng/fastglow.frag
deleted file mode 100644
index fa19239..0000000
--- a/src/effects/shaders_ng/fastglow.frag
+++ /dev/null
@@ -1,40 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec4 color;
- float spread;
- float weight1;
- float weight2;
- float weight3;
- float weight4;
- float weight5;
-};
-
-layout(binding = 1) uniform sampler2D source1;
-layout(binding = 2) uniform sampler2D source2;
-layout(binding = 3) uniform sampler2D source3;
-layout(binding = 4) uniform sampler2D source4;
-layout(binding = 5) uniform sampler2D source5;
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- vec4 sourceColor = texture(source1, qt_TexCoord0) * weight1;
- sourceColor += texture(source2, qt_TexCoord0) * weight2;
- sourceColor += texture(source3, qt_TexCoord0) * weight3;
- sourceColor += texture(source4, qt_TexCoord0) * weight4;
- sourceColor += texture(source5, qt_TexCoord0) * weight5;
- sourceColor = mix(vec4(0), color, linearstep(0.0, spread, sourceColor.a));
- fragColor = sourceColor * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/fastglow.frag.qsb b/src/effects/shaders_ng/fastglow.frag.qsb
deleted file mode 100644
index d78cd6d..0000000
--- a/src/effects/shaders_ng/fastglow.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/gammaadjust.frag b/src/effects/shaders_ng/gammaadjust.frag
deleted file mode 100644
index 0a1175a..0000000
--- a/src/effects/shaders_ng/gammaadjust.frag
+++ /dev/null
@@ -1,22 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float gamma;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- vec4 originalColor = texture(source, qt_TexCoord0.st);
- originalColor.rgb = originalColor.rgb / max(1.0/256.0, originalColor.a);
- vec3 adjustedColor = pow(originalColor.rgb, vec3(gamma));
- fragColor = vec4(adjustedColor * originalColor.a, originalColor.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/gammaadjust.frag.qsb b/src/effects/shaders_ng/gammaadjust.frag.qsb
deleted file mode 100644
index 40ab6c1..0000000
--- a/src/effects/shaders_ng/gammaadjust.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/huesaturation.frag b/src/effects/shaders_ng/huesaturation.frag
deleted file mode 100644
index 0b1e10e..0000000
--- a/src/effects/shaders_ng/huesaturation.frag
+++ /dev/null
@@ -1,91 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec3 hsl;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-vec3 RGBtoHSL(vec3 color)
-{
- float cmin = min(color.r, min(color.g, color.b));
- float cmax = max(color.r, max(color.g, color.b));
- float h = 0.0;
- float s = 0.0;
- float l = (cmin + cmax) / 2.0;
- float diff = cmax - cmin;
-
- if (diff > 1.0 / 256.0) {
- if (l < 0.5)
- s = diff / (cmin + cmax);
- else
- s = diff / (2.0 - (cmin + cmax));
-
- if (color.r == cmax)
- h = (color.g - color.b) / diff;
- else if (color.g == cmax)
- h = 2.0 + (color.b - color.r) / diff;
- else
- h = 4.0 + (color.r - color.g) / diff;
-
- h /= 6.0;
- }
- return vec3(h, s, l);
-}
-
-float hueToIntensity(float v1, float v2, float h)
-{
- h = fract(h);
- if (h < 1.0 / 6.0)
- return v1 + (v2 - v1) * 6.0 * h;
- else if (h < 1.0 / 2.0)
- return v2;
- else if (h < 2.0 / 3.0)
- return v1 + (v2 - v1) * 6.0 * (2.0 / 3.0 - h);
-
- return v1;
-}
-
-vec3 HSLtoRGB(vec3 color)
-{
- float h = color.x;
- float l = color.z;
- float s = color.y;
-
- if (s < 1.0 / 256.0)
- return vec3(l);
-
- float v1;
- float v2;
- if (l < 0.5)
- v2 = l * (1.0 + s);
- else
- v2 = (l + s) - (s * l);
-
- v1 = 2.0 * l - v2;
-
- float d = 1.0 / 3.0;
- float r = hueToIntensity(v1, v2, h + d);
- float g = hueToIntensity(v1, v2, h);
- float b = hueToIntensity(v1, v2, h - d);
- return vec3(r, g, b);
-}
-
-void main()
-{
- vec4 samp = texture(source, qt_TexCoord0);
- samp = vec4(samp.rgb / max(1.0/256.0, samp.a), samp.a);
- samp.rgb = mix(vec3(dot(samp.rgb, vec3(0.2125, 0.7154, 0.0721))), samp.rgb, 1.0 + hsl.y);
- samp.xyz = RGBtoHSL(samp.rgb);
- samp.rgb = HSLtoRGB(vec3(samp.x + hsl.x, samp.y, samp.z));
- float c = step(0.0, hsl.z);
- samp.rgb = mix(samp.rgb, vec3(c), abs(hsl.z));
- fragColor = vec4(samp.rgb * samp.a, samp.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/huesaturation.frag.qsb b/src/effects/shaders_ng/huesaturation.frag.qsb
deleted file mode 100644
index 028a8b8..0000000
--- a/src/effects/shaders_ng/huesaturation.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/leveladjust.frag b/src/effects/shaders_ng/leveladjust.frag
deleted file mode 100644
index d8cde59..0000000
--- a/src/effects/shaders_ng/leveladjust.frag
+++ /dev/null
@@ -1,47 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec3 minimumInputRGB;
- vec3 maximumInputRGB;
- float minimumInputAlpha;
- float maximumInputAlpha;
- vec3 minimumOutputRGB;
- vec3 maximumOutputRGB;
- float minimumOutputAlpha;
- float maximumOutputAlpha;
- vec3 gamma;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- vec4 textureColor = texture(source, qt_TexCoord0.st);
- vec4 color = vec4(textureColor.rgb / max(1.0/256.0, textureColor.a), textureColor.a);
-
- color.r = linearstep(minimumInputRGB.r, maximumInputRGB.r, color.r);
- color.g = linearstep(minimumInputRGB.g, maximumInputRGB.g, color.g);
- color.b = linearstep(minimumInputRGB.b, maximumInputRGB.b, color.b);
- color.a = linearstep(minimumInputAlpha, maximumInputAlpha, color.a);
-
- color.rgb = pow(color.rgb, gamma);
-
- color.r = minimumOutputRGB.r + color.r * (maximumOutputRGB.r - minimumOutputRGB.r);
- color.g = minimumOutputRGB.g + color.g * (maximumOutputRGB.g - minimumOutputRGB.g);
- color.b = minimumOutputRGB.b + color.b * (maximumOutputRGB.b - minimumOutputRGB.b);
- color.a = minimumOutputAlpha + color.a * (maximumOutputAlpha - minimumOutputAlpha);
-
- fragColor = vec4(color.rgb * color.a, color.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/leveladjust.frag.qsb b/src/effects/shaders_ng/leveladjust.frag.qsb
deleted file mode 100644
index fad450d..0000000
--- a/src/effects/shaders_ng/leveladjust.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/lineargradient.vert b/src/effects/shaders_ng/lineargradient.vert
deleted file mode 100644
index cd8f8a8..0000000
--- a/src/effects/shaders_ng/lineargradient.vert
+++ /dev/null
@@ -1,31 +0,0 @@
-#version 440
-
-layout(location = 0) in vec4 qt_Vertex;
-layout(location = 1) in vec2 qt_MultiTexCoord0;
-
-layout(location = 0) out vec2 qt_TexCoord0;
-layout(location = 1) out vec2 qt_TexCoord1;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 startPoint;
- vec2 matrixData;
- float l;
-};
-
-out gl_PerVertex { vec4 gl_Position; };
-
-void main()
-{
- mat2 rot = mat2(matrixData.y, -matrixData.x,
- matrixData.x, matrixData.y);
-
- qt_TexCoord0 = qt_MultiTexCoord0;
-
- qt_TexCoord1 = qt_MultiTexCoord0 * l;
- qt_TexCoord1 -= startPoint * l;
- qt_TexCoord1 *= rot;
-
- gl_Position = qt_Matrix * qt_Vertex;
-}
diff --git a/src/effects/shaders_ng/lineargradient.vert.qsb b/src/effects/shaders_ng/lineargradient.vert.qsb
deleted file mode 100644
index 475ace8..0000000
--- a/src/effects/shaders_ng/lineargradient.vert.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/lineargradient_mask.frag b/src/effects/shaders_ng/lineargradient_mask.frag
deleted file mode 100644
index dda85d7..0000000
--- a/src/effects/shaders_ng/lineargradient_mask.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 startPoint;
- vec2 matrixData;
- float l;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- vec4 gradientColor = texture(source, qt_TexCoord1);
- float maskAlpha = texture(maskSource, qt_TexCoord0).a;
- fragColor = gradientColor * maskAlpha * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/lineargradient_mask.frag.qsb b/src/effects/shaders_ng/lineargradient_mask.frag.qsb
deleted file mode 100644
index 1e99b35..0000000
--- a/src/effects/shaders_ng/lineargradient_mask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/lineargradient_nomask.frag b/src/effects/shaders_ng/lineargradient_nomask.frag
deleted file mode 100644
index be1d992..0000000
--- a/src/effects/shaders_ng/lineargradient_nomask.frag
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 startPoint;
- vec2 matrixData;
- float l;
-};
-
-layout(binding = 1) uniform sampler2D source;
-
-void main()
-{
- fragColor = texture(source, qt_TexCoord1) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/lineargradient_nomask.frag.qsb b/src/effects/shaders_ng/lineargradient_nomask.frag.qsb
deleted file mode 100644
index 99c479c..0000000
--- a/src/effects/shaders_ng/lineargradient_nomask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/opacitymask.frag b/src/effects/shaders_ng/opacitymask.frag
deleted file mode 100644
index 94a80b8..0000000
--- a/src/effects/shaders_ng/opacitymask.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- fragColor = texture(source, qt_TexCoord0.st) * (texture(maskSource, qt_TexCoord0.st).a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/opacitymask.frag.qsb b/src/effects/shaders_ng/opacitymask.frag.qsb
deleted file mode 100644
index cef12b4..0000000
--- a/src/effects/shaders_ng/opacitymask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/opacitymask_invert.frag b/src/effects/shaders_ng/opacitymask_invert.frag
deleted file mode 100644
index 2506bdb..0000000
--- a/src/effects/shaders_ng/opacitymask_invert.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- fragColor = texture(source, qt_TexCoord0.st) * (1.0 - texture(maskSource, qt_TexCoord0.st).a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/opacitymask_invert.frag.qsb b/src/effects/shaders_ng/opacitymask_invert.frag.qsb
deleted file mode 100644
index b622ff9..0000000
--- a/src/effects/shaders_ng/opacitymask_invert.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/radialgradient.vert b/src/effects/shaders_ng/radialgradient.vert
deleted file mode 100644
index 27dd88a..0000000
--- a/src/effects/shaders_ng/radialgradient.vert
+++ /dev/null
@@ -1,39 +0,0 @@
-#version 440
-
-layout(location = 0) in vec4 qt_Vertex;
-layout(location = 1) in vec2 qt_MultiTexCoord0;
-
-layout(location = 0) out vec2 qt_TexCoord0;
-layout(location = 1) out vec2 qt_TexCoord1;
-layout(location = 2) out vec2 centerPoint;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- vec2 matrixData;
- float horizontalRatio;
- float verticalRatio;
-};
-
-out gl_PerVertex { vec4 gl_Position; };
-
-void main()
-{
- vec2 ratio = vec2(horizontalRatio, verticalRatio);
-
- mat2 rot = mat2(matrixData.y, -matrixData.x,
- matrixData.x, matrixData.y);
-
- qt_TexCoord0 = qt_MultiTexCoord0;
-
- qt_TexCoord1 = qt_MultiTexCoord0;
- qt_TexCoord1 -= center;
- qt_TexCoord1 *= rot;
- qt_TexCoord1 += center;
- qt_TexCoord1 *= ratio;
-
- centerPoint = center * ratio;
-
- gl_Position = qt_Matrix * qt_Vertex;
-}
diff --git a/src/effects/shaders_ng/radialgradient.vert.qsb b/src/effects/shaders_ng/radialgradient.vert.qsb
deleted file mode 100644
index 38961b8..0000000
--- a/src/effects/shaders_ng/radialgradient.vert.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/radialgradient_mask.frag b/src/effects/shaders_ng/radialgradient_mask.frag
deleted file mode 100644
index b67d67f..0000000
--- a/src/effects/shaders_ng/radialgradient_mask.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 2) in vec2 centerPoint;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- vec2 matrixData;
- float horizontalRatio;
- float verticalRatio;
-};
-
-layout(binding = 1) uniform sampler2D gradientImage;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- vec4 gradientColor = texture(gradientImage, vec2(0.0, 2.0 * distance(qt_TexCoord1, centerPoint)));
- float maskAlpha = texture(maskSource, qt_TexCoord0).a;
- fragColor = gradientColor * maskAlpha * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/radialgradient_mask.frag.qsb b/src/effects/shaders_ng/radialgradient_mask.frag.qsb
deleted file mode 100644
index 8606a67..0000000
--- a/src/effects/shaders_ng/radialgradient_mask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/radialgradient_nomask.frag b/src/effects/shaders_ng/radialgradient_nomask.frag
deleted file mode 100644
index 777d53d..0000000
--- a/src/effects/shaders_ng/radialgradient_nomask.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 1) in vec2 qt_TexCoord1;
-layout(location = 2) in vec2 centerPoint;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- vec2 center;
- vec2 matrixData;
- float horizontalRatio;
- float verticalRatio;
-};
-
-layout(binding = 1) uniform sampler2D gradientImage;
-
-void main()
-{
- vec4 gradientColor = texture(gradientImage, vec2(0.0, 2.0 * distance(qt_TexCoord1, centerPoint)));
- fragColor = gradientColor * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/radialgradient_nomask.frag.qsb b/src/effects/shaders_ng/radialgradient_nomask.frag.qsb
deleted file mode 100644
index 1df3ebc..0000000
--- a/src/effects/shaders_ng/radialgradient_nomask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/rectangularglow.frag b/src/effects/shaders_ng/rectangularglow.frag
deleted file mode 100644
index cf20b93..0000000
--- a/src/effects/shaders_ng/rectangularglow.frag
+++ /dev/null
@@ -1,30 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- vec4 color;
- float relativeSizeX;
- float relativeSizeY;
- float spread;
-};
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- float alpha =
- smoothstep(0.0, relativeSizeX, 0.5 - abs(0.5 - qt_TexCoord0.x)) *
- smoothstep(0.0, relativeSizeY, 0.5 - abs(0.5 - qt_TexCoord0.y));
-
- float spreadMultiplier = linearstep(spread, 1.0 - spread, alpha);
- fragColor = color * qt_Opacity * spreadMultiplier * spreadMultiplier;
-}
diff --git a/src/effects/shaders_ng/rectangularglow.frag.qsb b/src/effects/shaders_ng/rectangularglow.frag.qsb
deleted file mode 100644
index 7eaf930..0000000
--- a/src/effects/shaders_ng/rectangularglow.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/effects/shaders_ng/thresholdmask.frag b/src/effects/shaders_ng/thresholdmask.frag
deleted file mode 100644
index 7740e7e..0000000
--- a/src/effects/shaders_ng/thresholdmask.frag
+++ /dev/null
@@ -1,23 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- // qt_Matrix and qt_Opacity must always be both present
- // if the built-in vertex shader is used.
- mat4 qt_Matrix;
- float qt_Opacity;
- float threshold;
- float spread;
-};
-
-layout(binding = 1) uniform sampler2D source;
-layout(binding = 2) uniform sampler2D maskSource;
-
-void main()
-{
- vec4 colorFragment = texture(source, qt_TexCoord0.st);
- vec4 maskFragment = texture(maskSource, qt_TexCoord0.st);
- fragColor = colorFragment * smoothstep(threshold * (1.0 + spread) - spread, threshold * (1.0 + spread), maskFragment.a) * qt_Opacity;
-}
diff --git a/src/effects/shaders_ng/thresholdmask.frag.qsb b/src/effects/shaders_ng/thresholdmask.frag.qsb
deleted file mode 100644
index 38e7391..0000000
--- a/src/effects/shaders_ng/thresholdmask.frag.qsb
+++ /dev/null
Binary files differ
diff --git a/src/src.pro b/src/src.pro
deleted file mode 100644
index b779774..0000000
--- a/src/src.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += effects
diff --git a/sync.profile b/sync.profile
deleted file mode 100644
index 6d035bc..0000000
--- a/sync.profile
+++ /dev/null
@@ -1,2 +0,0 @@
-%modules = ( # path to module name map
-);
diff --git a/tests/.prev_CMakeLists.txt b/tests/.prev_CMakeLists.txt
deleted file mode 100644
index 2214137..0000000
--- a/tests/.prev_CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-# Generated from tests.pro.
-
-if(QT_BUILD_STANDALONE_TESTS)
- # Add qt_find_package calls for extra dependencies that need to be found when building
- # the standalone tests here.
-endif()
-qt_build_tests()
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
deleted file mode 100644
index ed965c0..0000000
--- a/tests/CMakeLists.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-# Generated from tests.pro.
-
-if(QT_BUILD_STANDALONE_TESTS)
- # Add qt_find_package calls for extra dependencies that need to be found when building
- # the standalone tests here.
-endif()
-qt_build_tests()
-
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
deleted file mode 100644
index fad899f..0000000
--- a/tests/auto/CMakeLists.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-# Generated from auto.pro.
-
-#####################################################################
-## tst_qtgraphicaleffects Test:
-#####################################################################
-
-qt_internal_add_test(tst_qtgraphicaleffects
- SOURCES
- tst_qtgraphicaleffects.cpp
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Qml
- Qt::Quick
-)
-
-#### Keys ignored in scope 1:.:.:auto.pro:<TRUE>:
-# DISTFILES = "dummy.qml"
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
deleted file mode 100644
index df22767..0000000
--- a/tests/auto/auto.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-
-CONFIG += testcase
-
-QT += qml testlib quick
-
-TARGET = tst_qtgraphicaleffects
-
-SOURCES += tst_qtgraphicaleffects.cpp
-
-DISTFILES += \
- dummy.qml
diff --git a/tests/auto/dummy.qml b/tests/auto/dummy.qml
deleted file mode 100644
index 17ba150..0000000
--- a/tests/auto/dummy.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
-
-Item {
-
-}
diff --git a/tests/auto/tst_qtgraphicaleffects.cpp b/tests/auto/tst_qtgraphicaleffects.cpp
deleted file mode 100644
index f83fc02..0000000
--- a/tests/auto/tst_qtgraphicaleffects.cpp
+++ /dev/null
@@ -1,542 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <qtest.h>
-#include <QtCore/qscopedpointer.h>
-#include <QtCore/QLibraryInfo>
-#include <QtQml>
-
-class tst_qtgraphicaleffects : public QObject
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void brightnessContrast();
- void colorize();
- void colorOverlay();
- void conicalGradient();
- void desaturate();
- void displace();
- void dropShadow();
- void fastBlur();
- void gammaAdjust();
- void glow();
- void hueSaturation();
- void levelAdjust();
- void linearGradient();
- void opacityMask();
- void radialGradient();
- void rectangularGlow();
- void thresholdMask();
-
-private:
- QString componentErrors(const QQmlComponent*) const;
-
- QString importSelf;
- QQmlEngine engine;
-};
-
-QString tst_qtgraphicaleffects::componentErrors(const QQmlComponent* component) const
-{
- if (!component) {
- return "(null component)";
- }
-
- QStringList out;
-
- const auto errors = component->errors();
- for (const QQmlError &error : errors)
- out << error.toString();
-
- return out.join("\n");
-}
-
-void tst_qtgraphicaleffects::initTestCase()
-{
- QString import;
-
- QString qmlImportPath = qgetenv("QML2_IMPORT_PATH");
- if (qmlImportPath.isEmpty() || !QFile::exists(qmlImportPath))
- qmlImportPath = QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);
-
- // Allow the test to work whether or not the module is yet installed.
- if (QFile::exists(qmlImportPath + "/QtGraphicalEffects")) {
- // Module is installed - import it the nice way
- import = "QtGraphicalEffects";
- }
- else {
- // Module is not installed - import it from the source tree, by URI
- QString qmldir = QFINDTESTDATA("../../src/effects/qmldir");
- QVERIFY2(QFile::exists(qmldir), qPrintable(qmldir));
-
- QUrl url = QUrl::fromLocalFile(QFileInfo(qmldir).canonicalPath());
- import = "\"" + url.toString() + "\"";
- }
-
- importSelf = QString("import %1 1.0\n").arg(import);
-}
-
-
-void tst_qtgraphicaleffects::brightnessContrast()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "BrightnessContrast {"
- "width: 50; height: 50\n"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("brightness").type(), QVariant::Double);
- QCOMPARE(obj->property("brightness").toDouble(), 0.0);
- QCOMPARE(obj->property("contrast").type(), QVariant::Double);
- QCOMPARE(obj->property("contrast").toDouble(), 0.0);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::colorize()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "Colorize {"
- "width: 50; height: 50\n"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("hue").type(), QVariant::Double);
- QCOMPARE(obj->property("hue").toDouble(), 0.0);
- QCOMPARE(obj->property("saturation").type(), QVariant::Double);
- QCOMPARE(obj->property("saturation").toDouble(), 1.0);
- QCOMPARE(obj->property("lightness").type(), QVariant::Double);
- QCOMPARE(obj->property("lightness").toDouble(), 0.0);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::fastBlur()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "FastBlur {"
- "width: 50; height: 50\n"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("radius").type(), QVariant::Double);
- QCOMPARE(obj->property("radius").toDouble(), 0.0);
- QCOMPARE(obj->property("transparentBorder").toBool(), false);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::desaturate()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "Desaturate {"
- "width: 50; height: 50\n"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("desaturation").type(), QVariant::Double);
- QCOMPARE(obj->property("desaturation").toDouble(), 0.0);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::hueSaturation()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "HueSaturation {"
- "width: 50; height: 50\n"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("hue").type(), QVariant::Double);
- QCOMPARE(obj->property("hue").toDouble(), 0.0);
- QCOMPARE(obj->property("saturation").type(), QVariant::Double);
- QCOMPARE(obj->property("saturation").toDouble(), 0.0);
- QCOMPARE(obj->property("lightness").type(), QVariant::Double);
- QCOMPARE(obj->property("lightness").toDouble(), 0.0);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::opacityMask()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "OpacityMask {"
- "width: 50; height: 50\n"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "maskSource: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("maskSource").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::radialGradient()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "RadialGradient {"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("gradient").toInt(), 0);
- QCOMPARE(obj->property("horizontalOffset").type(), QVariant::Double);
- QCOMPARE(obj->property("horizontalOffset").toDouble(), 0.0);
- QCOMPARE(obj->property("verticalOffset").type(), QVariant::Double);
- QCOMPARE(obj->property("verticalOffset").toDouble(), 0.0);
- QCOMPARE(obj->property("horizontalRadius").type(), QVariant::Double);
- QCOMPARE(obj->property("horizontalRadius").toDouble(), 50.0);
- QCOMPARE(obj->property("verticalRadius").type(), QVariant::Double);
- QCOMPARE(obj->property("verticalRadius").toDouble(), 50.0);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("angle").type(), QVariant::Double);
- QCOMPARE(obj->property("angle").toDouble(), 0.0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::linearGradient()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "LinearGradient {"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("gradient").toInt(), 0);
- QCOMPARE(obj->property("start").toPointF(), QPointF(0.0, 0.0));
- QCOMPARE(obj->property("end").toPointF(), QPointF(0.0, 50.0));
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::rectangularGlow()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "RectangularGlow {"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("spread").type(), QVariant::Double);
- QCOMPARE(obj->property("spread").toDouble(), 0.0);
- QCOMPARE(obj->property("glowRadius").type(), QVariant::Double);
- QCOMPARE(obj->property("glowRadius").toDouble(), 0.0);
- QCOMPARE(obj->property("color").toString(), QString("#ffffff"));
- QCOMPARE(obj->property("cornerRadius").type(), QVariant::Double);
- QCOMPARE(obj->property("cornerRadius").toDouble(), 0.0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::conicalGradient()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "ConicalGradient {"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("angle").type(), QVariant::Double);
- QCOMPARE(obj->property("angle").toDouble(), 0.0);
- QCOMPARE(obj->property("gradient").toInt(), 0);
- QCOMPARE(obj->property("horizontalOffset").type(), QVariant::Double);
- QCOMPARE(obj->property("horizontalOffset").toDouble(), 0.0);
- QCOMPARE(obj->property("horizontalOffset").type(), QVariant::Double);
- QCOMPARE(obj->property("verticalOffset").toDouble(), 0.0);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::colorOverlay()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "ColorOverlay {"
- "width: 50; height: 50\n"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("cached").toBool(), false);
- QCOMPARE(obj->property("color").toString(), QString("#00000000"));
-}
-
-void tst_qtgraphicaleffects::dropShadow()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "DropShadow {"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("radius").type(), QVariant::Double);
- QCOMPARE(obj->property("radius").toDouble(), 0.0);
- QCOMPARE(obj->property("horizontalOffset").type(), QVariant::Double);
- QCOMPARE(obj->property("horizontalOffset").toDouble(), 0.0);
- QCOMPARE(obj->property("verticalOffset").type(), QVariant::Double);
- QCOMPARE(obj->property("verticalOffset").toDouble(), 0.0);
- QCOMPARE(obj->property("cached").toBool(), false);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("color").toString(), QString("#000000"));
- QCOMPARE(obj->property("spread").type(), QVariant::Double);
- QCOMPARE(obj->property("spread").toDouble(), 0.0);
- QCOMPARE(obj->property("transparentBorder").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::gammaAdjust()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "GammaAdjust {"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("gamma").type(), QVariant::Double);
- QCOMPARE(obj->property("gamma").toDouble(), 1.0);
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::thresholdMask()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "ThresholdMask {"
- "width: 50; height: 50\n"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "maskSource: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("maskSource").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
- QCOMPARE(obj->property("threshold").type(), QVariant::Double);
- QCOMPARE(obj->property("threshold").toDouble(), 0.0);
- QCOMPARE(obj->property("spread").type(), QVariant::Double);
- QCOMPARE(obj->property("spread").toDouble(), 0.0);
-}
-
-void tst_qtgraphicaleffects::glow()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "Glow {"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("radius").type(), QVariant::Double);
- QCOMPARE(obj->property("radius").toDouble(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
- QCOMPARE(obj->property("spread").type(), QVariant::Double);
- QCOMPARE(obj->property("spread").toDouble(), 0);
- QCOMPARE(obj->property("color").toString(), QString("#ffffff"));
- QCOMPARE(obj->property("transparentBorder").toBool(), false);
-}
-
-void tst_qtgraphicaleffects::displace()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "Displace {"
- "source: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "displacementSource: ShaderEffectSource {sourceItem: Rectangle {width: 100; height: 100}}"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("displacementSource").toInt(), 0);
- QCOMPARE(obj->property("cached").toBool(), false);
- QCOMPARE(obj->property("displacement").type(), QVariant::Double);
- QCOMPARE(obj->property("displacement").toDouble(), 0.0);
-}
-
-void tst_qtgraphicaleffects::levelAdjust()
-{
- // Creation
- QString componentStr = "import QtQuick 2.0\n"
- + importSelf +
- "LevelAdjust {"
- "width: 50; height: 50\n"
- "}";
- QQmlComponent component(&engine);
- component.setData(componentStr.toLatin1(), QUrl::fromLocalFile(""));
- QVERIFY2(component.status() != QQmlComponent::Error, qPrintable(componentErrors(&component)));
- QTRY_COMPARE(component.status(), QQmlComponent::Ready);
- QScopedPointer<QObject> obj(component.create());
- QVERIFY(!obj.isNull());
-
- // Default values
- QCOMPARE(obj->property("source").toInt(), 0);
- QCOMPARE(obj->property("minimumInput").toString(), QString("#00000000"));
- QCOMPARE(obj->property("maximumInput").toString(), QString("#ffffff"));
- QCOMPARE(obj->property("minimumOutput").toString(), QString("#00000000"));
- QCOMPARE(obj->property("maximumOutput").toString(), QString("#ffffff"));
- QCOMPARE(obj->property("cached").toBool(), false);
-}
-
-QTEST_MAIN(tst_qtgraphicaleffects)
-
-#include "tst_qtgraphicaleffects.moc"
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt
deleted file mode 100644
index de858a2..0000000
--- a/tests/manual/CMakeLists.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-# Generated from manual.pro.
-
-add_subdirectory(smooth)
diff --git a/tests/manual/SourceProxyTest.qml b/tests/manual/SourceProxyTest.qml
deleted file mode 100644
index 311f543..0000000
--- a/tests/manual/SourceProxyTest.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtGraphicalEffects.private 1.12
-import QtQuick 2.12
-
-Rectangle {
-
- Rectangle {
- width: parent.width
- height: 1
- color: "lightsteelblue"
- }
-
- id: root
-
- height: 40
- width: parent.width
-
- property alias proxyInterpolation: proxy.interpolation
- property bool proxyPadding: false
-
- property string sourcing; // "layered", "shadersource", "none";
-
- property bool smoothness: true
- property bool padding: false
-
- property alias label: text.text
-
-
- property bool expectProxy: false
-
- color: proxy.active ? "darkred" : "darkblue"
-
- Text {
- id: text
- color: "white"
- font.pixelSize: 14
- font.bold: true
-
- anchors.centerIn: parent
-
- layer.enabled: root.sourcing == "layered"
- layer.smooth: root.smoothness
- layer.sourceRect: padding ? Qt.rect(-1, -1, text.width, text.height) : Qt.rect(0, 0, 0, 0);
- }
-
- ShaderEffectSource {
- id: shaderSource
- sourceItem: text
- smooth: root.smoothness
- sourceRect: padding ? Qt.rect(-1, -1, text.width, text.height) : Qt.rect(0, 0, 0, 0);
- }
-
- SourceProxy {
- id: proxy
- input: sourcing == "shadersource" ? shaderSource : (root.sourcing == "layered" ? text : null);
- visible: false
- sourceRect: proxyPadding ? Qt.rect(-1, -1, text.width, text.height) : Qt.rect(0, 0, 0, 0);
- }
-
- Text {
- id: autoConfLabel;
- // This will be shown when the source is a layer which has different
- // attributes set than what the source proxy expects. The source proxy
- // will then configure the layer.
- color: "#00ff00"
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter;
- text: "(configured)"
- font.pixelSize: 12
- font.bold: true
- visible: root.expectProxy != proxy.active && !proxy.active && root.sourcing == "layered";
- }
-
- Text {
- color: "red"
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter;
- rotation: 45
- text: "FAIL"
- font.pixelSize: 12
- font.bold: true
- visible: root.expectProxy != proxy.active && !autoConfLabel.visible
- }
-
-}
diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro
deleted file mode 100644
index 730f489..0000000
--- a/tests/manual/manual.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-TEMPLATE = subdirs
-OTHER_FILES = testbed/*.qml
-SUBDIRS += smooth
-
diff --git a/tests/manual/smooth/CMakeLists.txt b/tests/manual/smooth/CMakeLists.txt
deleted file mode 100644
index 9912fcf..0000000
--- a/tests/manual/smooth/CMakeLists.txt
+++ /dev/null
@@ -1,48 +0,0 @@
-# Generated from smooth.pro.
-
-#####################################################################
-## smooth Binary:
-#####################################################################
-
-qt_internal_add_manual_test(smooth
- GUI
- SOURCES
- main.cpp
- DEFINES
- QT_DEPRECATED_WARNINGS
- PUBLIC_LIBRARIES
- Qt::Gui
- Qt::Quick
-)
-
-# Resources:
-set(resources_resource_files
- "CellContainer.qml"
- "SourceImage.qml"
- "main.qml"
- "star.png"
-)
-
-qt_internal_add_resource(smooth "resources"
- PREFIX
- "/"
- FILES
- ${resources_resource_files}
-)
-
-
-#### Keys ignored in scope 1:.:.:smooth.pro:<TRUE>:
-# QML_DESIGNER_IMPORT_PATH = <EMPTY>
-# QML_IMPORT_PATH = <EMPTY>
-
-## Scopes:
-#####################################################################
-
-#### Keys ignored in scope 2:.:.:smooth.pro:QNX:
-# target.path = "/tmp/$${TARGET}/bin"
-
-#### Keys ignored in scope 4:.:.:smooth.pro:UNIX AND NOT ANDROID:
-# target.path = "/opt/$${TARGET}/bin"
-
-#### Keys ignored in scope 5:.:.:smooth.pro:NOT target.path_ISEMPTY:
-# INSTALLS = "target"
diff --git a/tests/manual/smooth/CellContainer.qml b/tests/manual/smooth/CellContainer.qml
deleted file mode 100644
index 60af0f7..0000000
--- a/tests/manual/smooth/CellContainer.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-
-Item {
- implicitWidth: children[0].implicitWidth * children[0].scale
- implicitHeight: children[0].implicitHeight * children[0].scale
-
- Layout.alignment: Qt.AlignHCenter
-}
diff --git a/tests/manual/smooth/SourceImage.qml b/tests/manual/smooth/SourceImage.qml
deleted file mode 100644
index 86cf269..0000000
--- a/tests/manual/smooth/SourceImage.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.12
-
-Image {
- source: "star.png"
- smooth: false
- scale: 4
- transformOrigin: Item.TopLeft
-}
diff --git a/tests/manual/smooth/main.cpp b/tests/manual/smooth/main.cpp
deleted file mode 100644
index 26af78c..0000000
--- a/tests/manual/smooth/main.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2020 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQuickItem>
-
-int main(int argc, char *argv[])
-{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/smooth/main.qml b/tests/manual/smooth/main.qml
deleted file mode 100644
index 3c458cc..0000000
--- a/tests/manual/smooth/main.qml
+++ /dev/null
@@ -1,358 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.12
-import QtQuick.Layouts 1.12
-import QtGraphicalEffects 1.12
-
-/*
- A testbench for source items (and effects) that set smooth to false.
-
- Setting smooth to false doesn't make sense for all effects (like blurs).
-*/
-
-Window {
- id: window
- width: 1200
- height: 1000
- visible: true
-
- Flickable {
- anchors.fill: parent
- contentWidth: rowLayout.width
- contentHeight: rowLayout.implicitHeight
-
- GridLayout {
- id: rowLayout
- width: window.width
- columns: 4
-
- // Header
- Text {
- text: "Plain Image"
- Layout.alignment: Qt.AlignHCenter
- Layout.column: 1
- }
-
- Text {
- text: "... with standalone effect"
- Layout.alignment: Qt.AlignHCenter
- }
-
- Text {
- text: "... with layer effect"
- Layout.alignment: Qt.AlignHCenter
- }
-
- // ColorOverlay
- Text {
- text: "ColorOverlay"
- Layout.fillWidth: true
- }
-
- CellContainer {
- SourceImage {}
- }
-
- CellContainer {
- SourceImage {
- visible: false
- }
-
- ColorOverlay {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- color: "#aa0ff000"
- scale: parent.children[0].scale
- transformOrigin: Item.TopLeft
- }
- }
-
- CellContainer {
- SourceImage {
- layer.enabled: true
- layer.effect: ColorOverlay {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- color: "#aa0ff000"
- }
- }
- }
-
- // Colorize
- Text {
- text: "Colorize"
- Layout.fillWidth: true
- }
-
- CellContainer {
- SourceImage {}
- }
-
- CellContainer {
- SourceImage {
- visible: false
- }
-
- Colorize {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- hue: 0.5
- scale: parent.children[0].scale
- transformOrigin: Item.TopLeft
- }
- }
-
- CellContainer {
- SourceImage {
- layer.enabled: true
- layer.effect: Colorize {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- hue: 0.5
- }
- }
- }
-
- // BrightnessContrast
- Text {
- text: "BrightnessContrast"
- Layout.fillWidth: true
- }
-
- CellContainer {
- SourceImage {}
- }
-
- CellContainer {
- SourceImage {
- visible: false
- }
-
- BrightnessContrast {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- brightness: 0.5
- scale: parent.children[0].scale
- transformOrigin: Item.TopLeft
- }
- }
-
- CellContainer {
- SourceImage {
- layer.enabled: true
- layer.effect: BrightnessContrast {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- brightness: 0.5
- }
- }
- }
-
- // HueSaturation
- Text {
- text: "HueSaturation"
- Layout.fillWidth: true
- }
-
- CellContainer {
- SourceImage {}
- }
-
- CellContainer {
- SourceImage {
- visible: false
- }
-
- HueSaturation {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- saturation: 1.0
- scale: parent.children[0].scale
- transformOrigin: Item.TopLeft
- }
- }
-
- CellContainer {
- SourceImage {
- layer.enabled: true
- layer.effect: HueSaturation {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- saturation: 1.0
- }
- }
- }
-
- // Desaturate
- Text {
- text: "Desaturate"
- Layout.fillWidth: true
- }
-
- CellContainer {
- SourceImage {}
- }
-
- CellContainer {
- SourceImage {
- visible: false
- }
-
- Desaturate {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- desaturation: 0.85
- scale: parent.children[0].scale
- transformOrigin: Item.TopLeft
- }
- }
-
- CellContainer {
- SourceImage {
- layer.enabled: true
- layer.effect: Desaturate {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- desaturation: 0.85
- }
- }
- }
-
- // GammaAdjust
- Text {
- text: "GammaAdjust"
- Layout.fillWidth: true
- }
-
- CellContainer {
- SourceImage {}
- }
-
- CellContainer {
- SourceImage {
- visible: false
- }
-
- // doesn't seem to do anything...
- GammaAdjust {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- gamma: 10
- scale: parent.children[0].scale
- transformOrigin: Item.TopLeft
- }
- }
-
- CellContainer {
- SourceImage {
- layer.enabled: true
- layer.effect: GammaAdjust {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- gamma: 10
- }
- }
- }
-
- // LevelAdjust
- Text {
- text: "LevelAdjust"
- Layout.fillWidth: true
- }
-
- CellContainer {
- SourceImage {}
- }
-
- CellContainer {
- SourceImage {
- visible: false
- }
-
- LevelAdjust {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- minimumOutput: "#00ffffff"
- maximumOutput: "#ff000000"
- scale: parent.children[0].scale
- transformOrigin: Item.TopLeft
- }
- }
-
- CellContainer {
- SourceImage {
- layer.enabled: true
- layer.effect: LevelAdjust {
- width: parent.children[0].width
- height: parent.children[0].height
- source: parent.children[0]
- minimumOutput: "#00ffffff"
- maximumOutput: "#ff000000"
- }
- }
- }
- }
- }
-}
diff --git a/tests/manual/smooth/resources.qrc b/tests/manual/smooth/resources.qrc
deleted file mode 100644
index b2b4653..0000000
--- a/tests/manual/smooth/resources.qrc
+++ /dev/null
@@ -1,8 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- <file>CellContainer.qml</file>
- <file>SourceImage.qml</file>
- <file>star.png</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/smooth/smooth.pro b/tests/manual/smooth/smooth.pro
deleted file mode 100644
index 5e577f4..0000000
--- a/tests/manual/smooth/smooth.pro
+++ /dev/null
@@ -1,30 +0,0 @@
-QT += quick
-CONFIG += c++11
-
-# The following define makes your compiler emit warnings if you use
-# any feature of Qt which as been marked deprecated (the exact warnings
-# depend on your compiler). Please consult the documentation of the
-# deprecated API in order to know how to port your code away from it.
-DEFINES += QT_DEPRECATED_WARNINGS
-
-# You can also make your code fail to compile if you use deprecated APIs.
-# In order to do so, uncomment the following line.
-# You can also select to disable deprecated APIs only up to a certain version of Qt.
-#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
-
-SOURCES += \
- main.cpp
-
-RESOURCES += \
- resources.qrc
-
-# Additional import path used to resolve QML modules in Qt Creator's code model
-QML_IMPORT_PATH =
-
-# Additional import path used to resolve QML modules just for Qt Quick Designer
-QML_DESIGNER_IMPORT_PATH =
-
-# Default rules for deployment.
-qnx: target.path = /tmp/$${TARGET}/bin
-else: unix:!android: target.path = /opt/$${TARGET}/bin
-!isEmpty(target.path): INSTALLS += target
diff --git a/tests/manual/smooth/star.png b/tests/manual/smooth/star.png
deleted file mode 100644
index 81c9ade..0000000
--- a/tests/manual/smooth/star.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testSourceProxy.qml b/tests/manual/testSourceProxy.qml
deleted file mode 100644
index dcdae6f..0000000
--- a/tests/manual/testSourceProxy.qml
+++ /dev/null
@@ -1,233 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 Jolla Ltd, author: <gunnar.sletta@jollamobile.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtGraphicalEffects.private 1.12
-import QtQuick 2.12
-
-Item {
- id: root
-
- width: 400
- height: 600
-
- // Text {
- // text: "source: layered, padded\nproxy: expect-no-padding"
- // layer.enabled: true
- // layer.sourceRect: Qt.rect(-1, -1, width, height);
- // font.pixelSize: 14
- // font.bold: true
- // }
-
- Flickable {
-
- anchors.fill: parent
-
- contentWidth: root.width
- contentHeight: column.height
-
- Column {
- id: column
- width: root.width
-
- SourceProxyTest {
- label: "source: layered, padded\nproxy: expect-no-padding"
- sourcing: "layered"
- proxyPadding: false
- padding: true
- expectProxy: true
- }
- SourceProxyTest {
- label: "source: layered, non-padded\nproxy: expect-no-padding"
- sourcing: "layered"
- proxyPadding: false
- padding: false
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: layered, padded\nproxy: expect-padding"
- sourcing: "layered"
- proxyPadding: true
- padding: true
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: layered, non-padded\nproxy: expect-padding"
- sourcing: "layered"
- proxyPadding: true
- padding: false
- expectProxy: true
- }
-
-
- SourceProxyTest {
- label: "source: shadersource, padded\nproxy: expect-no-padding"
- sourcing: "shadersource"
- proxyPadding: false
- padding: true
- expectProxy: true
- }
- SourceProxyTest {
- label: "source: shadersource, non-padded\nproxy: expect-no-padding"
- sourcing: "shadersource"
- proxyPadding: false
- padding: false
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: shadersource, padded\nproxy: expect-padding"
- sourcing: "shadersource"
- proxyPadding: true
- padding: true
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: shadersource, non-padded\nproxy: expect-padding"
- sourcing: "shadersource"
- proxyPadding: true
- padding: false
- expectProxy: true
- }
-
-
- SourceProxyTest {
- label: "source: layered, non-smooth\nproxy: any-interpolation, "
- sourcing: "layered"
- smoothness: false
- proxyInterpolation: SourceProxy.AnyInterpolation
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: layered, smooth\nproxy: any-interpolation, "
- sourcing: "layered"
- smoothness: true
- proxyInterpolation: SourceProxy.AnyInterpolation
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: layered, non-smooth\nproxy: nearest-interpolation, "
- sourcing: "layered"
- smoothness: false
- proxyInterpolation: SourceProxy.NearestInterpolation
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: layered, smooth\nproxy: nearest-interpolation, "
- sourcing: "layered"
- smoothness: true
- proxyInterpolation: SourceProxy.NearestInterpolation
- expectProxy: true
- }
-
- SourceProxyTest {
- label: "source: layered, non-smooth\nproxy: linear-interpolation, "
- sourcing: "layered"
- smoothness: false
- proxyInterpolation: SourceProxy.LinearInterpolation
- expectProxy: true
- }
- SourceProxyTest {
- label: "source: layered, smooth\nproxy: linear-interpolation, "
- sourcing: "layered"
- smoothness: true
- proxyInterpolation: SourceProxy.LinearInterpolation
- expectProxy: false
- }
-
-
-
- SourceProxyTest {
- label: "source: shadersource, non-smooth\nproxy: any-interpolation, "
- sourcing: "shadersource"
- smoothness: false
- proxyInterpolation: SourceProxy.AnyInterpolation
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: shadersource, smooth\nproxy: any-interpolation, "
- sourcing: "shadersource"
- smoothness: true
- proxyInterpolation: SourceProxy.AnyInterpolation
- expectProxy: false
- }
-
- SourceProxyTest {
- label: "source: shadersource, non-smooth\nproxy: nearest-interpolation, "
- sourcing: "shadersource"
- smoothness: false
- proxyInterpolation: SourceProxy.NearestInterpolation
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: shadersource, smooth\nproxy: nearest-interpolation, "
- sourcing: "shadersource"
- smoothness: true
- proxyInterpolation: SourceProxy.NearestInterpolation
- expectProxy: true
- }
-
- SourceProxyTest {
- label: "source: shadersource, non-smooth\nproxy: linear-interpolation, "
- sourcing: "shadersource"
- smoothness: false
- proxyInterpolation: SourceProxy.LinearInterpolation
- expectProxy: true
- }
- SourceProxyTest {
- label: "source: shadersource, smooth\nproxy: linear-interpolation, "
- sourcing: "shadersource"
- smoothness: true
- proxyInterpolation: SourceProxy.LinearInterpolation
- expectProxy: false
- }
-
-
-
- SourceProxyTest {
- label: "source: none\nproxy: any-interpolation"
- sourcing: "none"
- proxyInterpolation: SourceProxy.AnyInterpolation
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: none\nproxy: nearest-interpolation"
- sourcing: "none"
- proxyInterpolation: SourceProxy.NearestInterpolation
- expectProxy: false
- }
- SourceProxyTest {
- label: "source: none\nproxy: linear-interpolation"
- sourcing: "none"
- proxyInterpolation: SourceProxy.LinearInterpolation
- expectProxy: false
- }
-
-
- }
-
- }
-}
diff --git a/tests/manual/testbed/BGColorPicker.qml b/tests/manual/testbed/BGColorPicker.qml
deleted file mode 100644
index 0b06a8d..0000000
--- a/tests/manual/testbed/BGColorPicker.qml
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Label {
- id: bgColorPicker
- property color color: "#242424"
- caption: "Background color"
-
- Row {
- id: selection
- x: -3
- y: 3
- spacing: 4
- Rectangle { width: 16; height: 16; color: "#ffffff"
- Image {
- anchors.centerIn: parent
- source: "images/color_selection_mask.png"
- }
- MouseArea {
- anchors.fill: parent
- anchors.margins: -3
- onClicked: {
- bgColorPicker.color = parent.color
- highlight.x = parent.x - 3
- }
- }
- }
- Rectangle { width: 16; height: 16; color: "#ababab"
- Image {
- anchors.centerIn: parent
- source: "images/color_selection_mask.png"
- }
- MouseArea {
- anchors.fill: parent
- anchors.margins: -3
- onClicked: {
- bgColorPicker.color = parent.color
- highlight.x = parent.x - 3
- }
- }
- }
- Rectangle { id: initial; width: 16; height: 16; color: "#242424"
- Image {
- anchors.centerIn: parent
- source: "images/color_selection_mask.png"
- }
- MouseArea {
- anchors.fill: parent
- anchors.margins: -3
- onClicked: {
- bgColorPicker.color = parent.color
- highlight.x = parent.x - 3
- }
- }
- }
- Rectangle { width: 16; height: 16; color: "#000000"
- Image {
- anchors.centerIn: parent
- source: "images/color_selection_mask.png"
- }
- MouseArea {
- anchors.fill: parent
- anchors.margins: -3
- onClicked: {
- bgColorPicker.color = parent.color
- highlight.x = parent.x - 3
- }
- }
- }
- Image { source: "images/background.png"
- width: 16; height: 16;
- Image {
- anchors.centerIn: parent
- source: "images/color_selection_mask.png"
- }
- MouseArea {
- anchors.fill: parent
- anchors.margins: -3
- onClicked: {
- bgColorPicker.color = "#010101"
- highlight.x = parent.x - 3
- }
- }
- }
- }
-
- Image {
- id: highlight
- source: "images/color_selection_hl.png"
- x: initial.x - (highlight.width - initial.width) * 0.5
- y: selection.y - (highlight.height - selection.height) * 0.5
- }
-}
diff --git a/tests/manual/testbed/CheckBox.qml b/tests/manual/testbed/CheckBox.qml
deleted file mode 100644
index 2bd3fb6..0000000
--- a/tests/manual/testbed/CheckBox.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: checkBox
- property string caption: ""
- property bool selected: true
- property bool pressed: mouse.pressed
- anchors {left: parent.left; right: parent.right}
- height: 20
-
- Text {
- id: captionText
- width: 110
- anchors.verticalCenter: parent.verticalCenter
- horizontalAlignment: Text.AlignRight
- text: checkBox.caption + ':'
- font.family: "Arial"
- font.pixelSize: 11
- color: "#B3B3B3"
- }
-
- Image {
- id: button
- anchors {left: captionText.right; leftMargin: 5; verticalCenter: parent.verticalCenter}
- source: "images/checkbox_outer.png"
- smooth: true
- Image {
- id: buttonFill
- anchors.centerIn: parent
- source: "images/checkbox_inner.png"
- smooth: true
- visible: checkBox.selected
- }
- }
-
- MouseArea {
- id: mouse
- anchors.fill: parent
- anchors.rightMargin: 160
- onClicked: checkBox.selected = !checkBox.selected
- preventStealing: true
- }
-}
diff --git a/tests/manual/testbed/ColorPicker.qml b/tests/manual/testbed/ColorPicker.qml
deleted file mode 100644
index aa46d7a..0000000
--- a/tests/manual/testbed/ColorPicker.qml
+++ /dev/null
@@ -1,212 +0,0 @@
-/*****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Add-On Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-*****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: root
- property color color: Qt.hsla(hue, saturation, lightness, alpha)
- property alias hue: hueSlider.value
- property alias saturation: saturationSlider.value
- property alias lightness: lightnessSlider.value
- property alias alpha: alphaSlider.value
- property bool showAlphaSlider: true
-
- width: parent.width
- height: 100
-
- Image {
- anchors.fill: map
- source: "images/background.png"
- fillMode: Image.Tile
- }
-
- Rectangle {
- id: colorBox
- anchors.fill: map
- color: root.color
- }
-
- Item { // ShaderEffect converted to an Item for now to keep it simple
- id: map
- anchors.left: parent.left
- anchors.leftMargin: 10
- anchors.top: parent.top
- anchors.topMargin: 5
- width: 68
- height: width
- opacity: 0.01
- property real hue: root.hue
-
- MouseArea {
- id: mapMouseArea
- anchors.fill: parent
- hoverEnabled: true
- preventStealing: true
- onPositionChanged: {
- if (pressed) {
- var xx = Math.max(0, Math.min(mouse.x, parent.width))
- var yy = Math.max(0, Math.min(mouse.y, parent.height))
- root.saturation = 1.0 - yy / parent.height
- root.lightness = xx / parent.width
- }
- }
- onPressed: positionChanged(mouse)
-
- onEntered: map.opacity = 1
- onReleased: {
- if (mouse.x < 0 || mouse.x > parent.width || mouse.y < 0 || mouse.y > parent.height) {
- map.opacity = 0.01;
- }
- }
- onExited: {
- if (!pressed) {
- map.opacity = 0.01;
- }
- }
- }
-
- Image {
- id: crosshair
- source: "images/slider_handle.png"
- x: root.lightness * parent.width - width / 2
- y: (1.0 - root.saturation) * parent.height - height / 2
- }
- }
-
- Column {
- anchors.left: parent.left
- anchors.right: parent.right
-
- ColorSlider {
- id: hueSlider
- minimum: 0.0
- maximum: 1.0
- value: 0.5
- caption: "H"
- trackItem: Rectangle {
- width: parent.height
- height: parent.width - 10
- color: "red"
- rotation: -90
- transformOrigin: Item.TopLeft
- y: width
- x: 5
- gradient: Gradient {
- GradientStop {position: 0.000; color: Qt.rgba(1, 0, 0, 1)}
- GradientStop {position: 0.167; color: Qt.rgba(1, 1, 0, 1)}
- GradientStop {position: 0.333; color: Qt.rgba(0, 1, 0, 1)}
- GradientStop {position: 0.500; color: Qt.rgba(0, 1, 1, 1)}
- GradientStop {position: 0.667; color: Qt.rgba(0, 0, 1, 1)}
- GradientStop {position: 0.833; color: Qt.rgba(1, 0, 1, 1)}
- GradientStop {position: 1.000; color: Qt.rgba(1, 0, 0, 1)}
- }
- }
- }
-
- ColorSlider {
- id: saturationSlider
- minimum: 0.0
- maximum: 1.0
- value: 1.0
- caption: "S"
- handleOpacity: 1.5 - map.opacity
- trackItem: Rectangle {
- width: parent.height
- height: parent.width - 10
- color: "red"
- rotation: -90
- transformOrigin: Item.TopLeft
- y: width
- x: 5
- gradient: Gradient {
- GradientStop { position: 0; color: Qt.hsla(root.hue, 0.0, root.lightness, 1.0) }
- GradientStop { position: 1; color: Qt.hsla(root.hue, 1.0, root.lightness, 1.0) }
- }
- }
- }
-
- ColorSlider {
- id: lightnessSlider
- minimum: 0.0
- maximum: 1.0
- value: 0.5
- caption: "L"
- handleOpacity: 1.5 - map.opacity
- trackItem: Rectangle {
- width: parent.height
- height: parent.width - 10
- color: "red"
- rotation: -90
- transformOrigin: Item.TopLeft
- y: width
- x: 5
- gradient: Gradient {
- GradientStop { position: 0; color: 'black' }
- GradientStop { position: 0.5; color: Qt.hsla(root.hue, root.saturation, 0.5, 1.0) }
- GradientStop { position: 1; color: 'white' }
- }
- }
- }
-
- ColorSlider {
- id: alphaSlider
- minimum: 0.0
- maximum: 1.0
- value: 1.0
- caption: "A"
- opacity: showAlphaSlider ? 1.0 : 0.0
- trackItem:Item {
- anchors.fill: parent
- Image {
- anchors {fill: parent; leftMargin: 5; rightMargin: 5}
- source: "images/background.png"
- fillMode: Image.TileHorizontally
- }
- Rectangle {
- width: parent.height
- height: parent.width - 10
- color: "red"
- rotation: -90
- transformOrigin: Item.TopLeft
- y: width
- x: 5
- gradient: Gradient {
- GradientStop { position: 0; color: "transparent" }
- GradientStop { position: 1; color: Qt.hsla(root.hue, root.saturation, root.lightness, 1.0) }
- }
- }
- }
- }
-
- Label {
- caption: "ARGB"
- text: "#" + ((Math.ceil(root.alpha * 255) + 256).toString(16).substr(1, 2) + root.color.toString().substr(1, 6)).toUpperCase();
- }
- }
-}
diff --git a/tests/manual/testbed/ColorSlider.qml b/tests/manual/testbed/ColorSlider.qml
deleted file mode 100644
index bdddac9..0000000
--- a/tests/manual/testbed/ColorSlider.qml
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: colorSlider
-
- property real value: 1
- property real maximum: 1
- property real minimum: 0
- property string caption: ""
- property bool pressed: mouseArea.pressed
- property bool integer: false
- property string handleSource: "images/slider_handle.png"
- property real handleOpacity: 1.0
- property alias trackItem: track.children
-
- width: parent.width
- height: 20
-
- function updatePos() {
- if (maximum > minimum) {
- var pos = (track.width - 10) * (value - minimum) / (maximum - minimum) + 5;
- return Math.min(Math.max(pos, 5), track.width - 5) - 10;
- } else {
- return 5;
- }
- }
-
- Text {
- id: captionText
- width: 110
- anchors.verticalCenter: parent.verticalCenter
- horizontalAlignment: Text.AlignRight
- text: colorSlider.caption + ':'
- font.family: "Arial"
- font.pixelSize: 11
- color: "#B3B3B3"
- }
-
- Text {
- id: valueCaption
- anchors.left: captionText.right
- anchors.leftMargin: 11
- anchors.verticalCenter: parent.verticalCenter
- width: 35
- horizontalAlignment: Text.AlignLeft
- text: colorSlider.value.toFixed(1)
- font.family: "Arial"
- font.pixelSize: 11
- color: "#999999"
- }
-
- Item {
- id: track
- height: 4
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- anchors.leftMargin: parent.width / 2
- anchors.right: parent.right
- anchors.rightMargin: 10
-
- Image {
- id: handle;
- anchors.verticalCenter: parent.verticalCenter
- smooth: true
- source: mouseArea.pressed ? 'images/slider_handle_pressed.png' : colorSlider.handleSource
- opacity: colorSlider.handleOpacity
- x: updatePos()
- z: 1
- }
-
- MouseArea {
- id: mouseArea
- anchors {left: parent.left; right: parent.right; leftMargin: 5; rightMargin: 5; verticalCenter: parent.verticalCenter}
- height: 8
- preventStealing: true
-
- onPressed: {
- var handleX = Math.max(0, Math.min(mouseX, mouseArea.width))
- var realValue = (maximum - minimum) * handleX / mouseArea.width + minimum;
- value = colorSlider.integer ? Math.round(realValue) : realValue;
- }
-
- onPositionChanged: {
- if (pressed) {
- var handleX = Math.max(0, Math.min(mouseX, mouseArea.width))
- var realValue = (maximum - minimum) * handleX / mouseArea.width + minimum;
- value = colorSlider.integer ? Math.round(realValue) : realValue;
- }
- }
- }
- }
-}
diff --git a/tests/manual/testbed/Control.qml b/tests/manual/testbed/Control.qml
deleted file mode 100644
index dcc7257..0000000
--- a/tests/manual/testbed/Control.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: control
- property string caption: ""
- default property alias children: controlsColumn.children
- property bool last: false
-
- property bool __hide: caption == "advanced"
-
- anchors {left: parent.left; right: parent.right}
- height: __hide ? 30 : controlsColumn.height + 40
-
- Behavior on height {
- id: heightBehavior
- enabled: false
- NumberAnimation { duration: 100 }
- }
-
- Image {
- source: "images/group_top.png"
- anchors {top: parent.top; left: parent.left; right: parent.right}
- }
-
- Image {
- source: "images/group_bottom.png"
- anchors.bottom: parent.bottom
- anchors.left: parent.left
- anchors.right: parent.right
- smooth: true
- visible: !last || __hide
- }
-
- Text {
- id: sectionText
- anchors {left: parent.left; top: parent.top; leftMargin: 11; topMargin: 8}
- color: "white"
- font.family: "Arial"
- font.bold: true
- font.pixelSize: 12
- text: caption
- }
-
- Image {
- anchors {right: parent.right; rightMargin: 5; top: parent.top}
- source: __hide ? "images/expand.png" : "images/collapse.png"
- }
-
- MouseArea {
- anchors.top: parent.top
- anchors.left: parent.left
- anchors.right: parent.right
- height: 30
- onClicked: {
- heightBehavior.enabled = true
- control.__hide = !control.__hide
- }
- }
-
- Column {
- id: controlsColumn
- anchors.top: parent.top
- anchors.topMargin: 30
- anchors.left: parent.left
- anchors.right: parent.right
- opacity: !__hide
- Behavior on opacity {
- NumberAnimation { duration: 100 }
- }
- }
-}
diff --git a/tests/manual/testbed/ImageSource.qml b/tests/manual/testbed/ImageSource.qml
deleted file mode 100644
index 520eacd..0000000
--- a/tests/manual/testbed/ImageSource.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Image {
- id: is
- source: "images/bug.jpg"
- smooth: true
- anchors.fill: parent
- fillMode: Image.PreserveAspectFit
- sourceSize: width > height ? Qt.size(0, parent.height) : Qt.size(parent.width, 0)
- //visible: !enabledCheckBox.selected
- opacity: enabledCheckBox.selected ? 0.0 : 1.0
-
- property bool forcedUpdateAnimationRunning: updateCheckBox.selected
- Text {
- x: is.width - 10 - width
- y: 10
- text: "Qt"
- font.pixelSize: 20
- color: "white"
- visible: is.forcedUpdateAnimationRunning
-
- NumberAnimation on rotation {
- id: dd
- running: is.forcedUpdateAnimationRunning
- loops: Animation.Infinite
- duration: 5000
- from: 0.0
- to: 360.0
- }
- }
-}
diff --git a/tests/manual/testbed/Label.qml b/tests/manual/testbed/Label.qml
deleted file mode 100644
index 6a5964c..0000000
--- a/tests/manual/testbed/Label.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: label
- property string caption: ""
- property string text: ""
- default property alias children: childrenItem.children
- anchors {left: parent.left; right: parent.right}
- height: Math.max(20, childrenItem.height)
-
- Text {
- id: captionText
- width: 110
- height: 20
- horizontalAlignment: Text.AlignRight
- verticalAlignment: Text.AlignVCenter
- text: label.caption + ':'
- font.family: "Arial"
- font.pixelSize: 11
- color: "#B3B3B3"
- }
-
- Text {
- id: valueText
- anchors {left: captionText.right; right: parent.right; leftMargin: 11; verticalCenter: parent.verticalCenter}
- height: 20
- verticalAlignment: Text.AlignVCenter
- text: label.text
- font.family: "Arial"
- font.pixelSize: 11
- color: "#999999"
- visible: label.text.length > 0
- }
-
- Item {
- id: childrenItem
- anchors {left: captionText.right; leftMargin: 11; right: parent.right}
- height: childrenRect.height
- }
-}
diff --git a/tests/manual/testbed/LevelSlider.qml b/tests/manual/testbed/LevelSlider.qml
deleted file mode 100644
index f13928c..0000000
--- a/tests/manual/testbed/LevelSlider.qml
+++ /dev/null
@@ -1,189 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: slider
-
- width: parent.width
- height: 30
-
- property real midPointValue: 0.5
- property real blackPointValue: 0.0
- property real whitePointValue: 1.0
- property real maximum: 1
- property real minimum: 0
- property real gamma: Math.min(10.0, Math.max(0.1, 1/(Math.log(0.5) / Math.log(midPointValue))))
- property string caption: ""
- property bool integer: false
- property bool showMidPoint: true
-
- Text {
- id: captionText
- width: 110
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 13
- horizontalAlignment: Text.AlignRight
- text: slider.caption + ':'
- font.family: "Arial"
- font.pixelSize: 11
- color: "#B3B3B3"
- }
-
- Item {
- id: track
- height: parent.height
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- anchors.leftMargin: parent.width / 2 - 30
- anchors.right: parent.right
- anchors.rightMargin: 10
-
- BorderImage {
- id: trackImage
- source: "images/slider_track.png"
- anchors.left: parent.left
- anchors.right: parent.right
- border.right: 2
- width: parent.width
- }
-
- BorderImage {
- id: trackFilled
- anchors.left: blackpointHandle.x < whitePointHandle.x ? blackpointHandle.right : whitePointHandle.right
- anchors.right: blackpointHandle.x < whitePointHandle.x ? whitePointHandle.left : blackpointHandle.left
- anchors.margins: -10
- source: "images/slider_track_filled.png"
- border.left: 3
- border.right: 3
- }
-
- Image {
- id: blackpointHandle;
- smooth: true
- source: blackpointMouseArea.pressed ? "images/slider_handle_pressed.png" : "images/slider_handle_black.png"
- x: trackImage.x - width/2 + 5
- width: 20
- onXChanged: {
- blackPointValue = minimum + maximum * ((x + 5) / (track.width - 10))
- midpointHandle.x = blackpointHandle.x + ((whitePointHandle.x - blackpointHandle.x) * midPointValue)
- }
- }
-
- Image {
- id: midpointHandle;
- smooth: true
- source: midpointMouseArea.pressed ? "images/slider_handle_pressed.png" : "images/slider_handle_gray.png"
- x: blackpointHandle.x + ((whitePointHandle.x - blackpointHandle.x) * 0.5)
- visible: showMidPoint
- width: 20
- onXChanged: {
- if (midpointMouseArea.pressed) {
- midPointValue = (x - Math.min(whitePointHandle.x, blackpointHandle.x)) / Math.abs(whitePointHandle.x - blackpointHandle.x)
- }
- }
- }
-
- Image {
- id: whitePointHandle;
- smooth: true
- source: whitepointMouseArea.pressed ? "images/slider_handle_pressed.png" : "images/slider_handle_white.png"
- x: trackImage.x + trackImage.width - width/2 - 5
- width: 20
- onXChanged: {
- whitePointValue = minimum + maximum * ((x + 5) / (track.width - 10))
- midpointHandle.x = blackpointHandle.x + ((whitePointHandle.x - blackpointHandle.x) * midPointValue)
- }
- }
-
- MouseArea {
- id: blackpointMouseArea
- anchors.fill: blackpointHandle
- anchors.margins: -5
- drag.target: blackpointHandle
- drag.axis: Drag.XAxis
- drag.minimumX: -5
- drag.maximumX: trackImage.width - blackpointHandle.width + 5
- }
-
- MouseArea {
- id: whitepointMouseArea
- anchors.fill: whitePointHandle
- anchors.margins: -5
- drag.target: whitePointHandle
- drag.axis: Drag.XAxis
- drag.minimumX: -5
- drag.maximumX: trackImage.width - whitePointHandle.width + 5
- }
-
- MouseArea {
- id: midpointMouseArea
- anchors.fill: midpointHandle
- anchors.margins: -5
- drag.target: midpointHandle
- drag.axis: Drag.XAxis
- drag.minimumX: Math.min(blackpointHandle.x, whitePointHandle.x)
- drag.maximumX: Math.max(whitePointHandle.x, blackpointHandle.x)
- }
- }
-
- Text {
- id: blackPointValueCaption
- anchors.bottom: track.bottom
- anchors.left: track.left
- text: slider.blackPointValue.toFixed(1)
- font.family: "Arial"
- font.pixelSize: 11
- color: "#999999"
- }
-
- Text {
- id: midPointValueCaption
- anchors.bottom: track.bottom
- anchors.left: track.left
- anchors.right: track.right
- horizontalAlignment: Text.AlignHCenter
- width: track.width
- text: slider.gamma.toFixed(1)
- font.family: "Arial"
- font.pixelSize: 11
- color: "#999999"
- visible: showMidPoint
- }
-
- Text {
- id: whitePointValueCaption
- anchors.bottom: track.bottom
- anchors.right: track.right
- text: slider.whitePointValue.toFixed(1)
- font.family: "Arial"
- font.pixelSize: 11
- color: "#999999"
- }
-}
diff --git a/tests/manual/testbed/PositionPicker.qml b/tests/manual/testbed/PositionPicker.qml
deleted file mode 100644
index 2b85b36..0000000
--- a/tests/manual/testbed/PositionPicker.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Image {
- id: positionPicker
- property real xValue: 0
- property real yValue: 0
-
- x: parent.width * xValue - positionPicker.width / 2
- y: parent.height * yValue - positionPicker.height / 2
-
- property alias pressed: mouseArea.pressed
-
- source: pressed ? "images/slider_handle_pressed.png" : "images/slider_handle.png"
-
- MouseArea {
- id: mouseArea
-
- property real startX
- property real startY
-
- anchors.fill: parent
- onPressed: {
- startX = mouseX;
- startY = mouseY;
- }
-
- onPositionChanged: {
- xValue = (positionPicker.x + positionPicker.width / 2 + mouseX - startX) / positionPicker.parent.width;
- yValue = (positionPicker.y + positionPicker.height / 2 + mouseY - startY) / positionPicker.parent.height;
- }
- }
-}
diff --git a/tests/manual/testbed/ProgressBar.qml b/tests/manual/testbed/ProgressBar.qml
deleted file mode 100644
index 067edfb..0000000
--- a/tests/manual/testbed/ProgressBar.qml
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: slider
-
- property real value: 1
- property real maximum: 1
- property real minimum: 0
- property string caption: ""
- property bool integer: false
-
- width: parent.width
- height: 20
-
- function updatePos() {
- if (maximum > minimum) {
- var pos = (track.width) * (value - minimum) / (maximum - minimum);
- return Math.min(Math.max(pos, 0), track.width);
- } else {
- return 0;
- }
- }
-
- Text {
- id: captionText
- width: 110
- anchors.verticalCenter: parent.verticalCenter
- horizontalAlignment: Text.AlignRight
- text: slider.caption + ':'
- font.family: "Arial"
- font.pixelSize: 11
- color: "#B3B3B3"
- }
-
- Text {
- id: valueCaption
- anchors.left: captionText.right
- anchors.leftMargin: 11
- anchors.verticalCenter: parent.verticalCenter
- width: 35
- horizontalAlignment: Text.AlignLeft
- text: slider.value.toFixed(1)
- font.family: "Arial"
- font.pixelSize: 11
- color: "#999999"
- }
-
- Item {
- id: track
- height: parent.height
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- anchors.leftMargin: parent.width / 2
- anchors.right: parent.right
- anchors.rightMargin: 10
-
- BorderImage {
- source: "images/slider_track.png"
- anchors.left: parent.left
- anchors.right: parent.right
- border.right: 2
- }
-
- BorderImage {
- id: trackFilled
- anchors.left: parent.left
- width: updatePos()
- source: "images/slider_track_filled.png"
- border.left: 3
- border.right: 3
- }
- }
-}
diff --git a/tests/manual/testbed/RadioButton.qml b/tests/manual/testbed/RadioButton.qml
deleted file mode 100644
index 1ab809d..0000000
--- a/tests/manual/testbed/RadioButton.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: radioButton
- property string caption: ""
- property bool selected: false
- property bool pressed: mouse.pressed
- anchors {left: parent.left; right: parent.right}
- height: 20
-
- Text {
- id: captionText
- anchors {left: parent.horizontalCenter; leftMargin: -5; right: parent.right; verticalCenter: parent.verticalCenter}
- horizontalAlignment: Text.AlignLeft
- text: radioButton.caption
- font.family: "Arial"
- font.pixelSize: 11
- color: "#B3B3B3"
- }
-
- Image {
- id: button
- anchors {right: captionText.left; rightMargin: 10; verticalCenter: parent.verticalCenter}
- source: "images/radiobutton_outer.png"
- smooth: true
- Image {
- id: buttonFill
- anchors.centerIn: parent
- source: "images/radiobutton_inner.png"
- smooth: true
- visible: radioButton.selected
- }
- }
-
- MouseArea {
- id: mouse
- anchors.fill: parent
- anchors.leftMargin: 115
- preventStealing: true
- }
-}
diff --git a/tests/manual/testbed/RadioButtonColumn.qml b/tests/manual/testbed/RadioButtonColumn.qml
deleted file mode 100644
index 3a16386..0000000
--- a/tests/manual/testbed/RadioButtonColumn.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: radioButtoncolumn
- property string value: ""
- property string prefixCaption: ""
- default property alias children: buttons.children
- property string caption: ""
-
- width: parent.width
- height: buttons.height
-
- Text {
- id: captionText
- anchors {top: parent.top; topMargin: 4}
- width: 110
- horizontalAlignment: Text.AlignRight
- font.family: "Arial"
- font.pixelSize: 11
- color: "#B3B3B3"
- text: radioButtoncolumn.caption + ':'
- }
-
- Column {
- id: buttons
- anchors.top: parent.top
- anchors.left: parent.left
- anchors.right: parent.right
- }
-}
diff --git a/tests/manual/testbed/RgbaColorPicker.qml b/tests/manual/testbed/RgbaColorPicker.qml
deleted file mode 100644
index 0b48e95..0000000
--- a/tests/manual/testbed/RgbaColorPicker.qml
+++ /dev/null
@@ -1,103 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: rgbaSlider
- property color color: Qt.rgba(rValue, gValue, bValue, aValue)
-
- property alias rValue: rSlider.value
- property alias gValue: gSlider.value
- property alias bValue: bSlider.value
- property alias aValue: aSlider.value
- property bool pressed: rSlider.pressed || gSlider.pressed || bSlider.pressed || aSlider.pressed
-
- width: parent.width
- height: childrenRect.height
-
- function dec2hex(i)
- {
- if (i <= 15)
- return "0" + i.toString(16);
- else
- return i.toString(16);
- }
-
- Rectangle {
- id: colorRect
- width: 50; height: 50
- anchors.left: parent.left
- anchors.leftMargin: 20
- anchors.verticalCenter: sliders.verticalCenter
- color: Qt.rgba(rgbaSlider.rValue, rgbaSlider.gValue, rgbaSlider.bValue, rgbaSlider.aValue)
- }
- Column {
- id: sliders
- anchors {left: parent.left; right: parent.right}
- Slider {
- id: aSlider
- minimum: 0
- maximum: 1
- value: 1.0
- caption: 'A'
- }
- Slider {
- id: rSlider
- minimum: 0
- maximum: 1
- value: 1.0
- caption: 'R'
- }
- Slider {
- id: gSlider
- minimum: 0
- maximum: 1
- value: 1.0
- caption: 'G'
- }
- Slider {
- id: bSlider
- minimum: 0
- maximum: 1
- value: 1.0
- caption: 'B'
- }
-
- }
-// Text {
-// anchors.top: colorRect.bottom
-// anchors.topMargin: 5
-// anchors.horizontalCenter: colorRect.horizontalCenter
-// horizontalAlignment: Text.AlignHCenter
-// text: "#" + dec2hex(Math.round(rgbaSlider.aValue * 255)) + dec2hex(Math.round(rgbaSlider.rValue * 255)) + dec2hex(Math.round(rgbaSlider.gValue * 255)) + dec2hex(Math.round(rgbaSlider.bValue * 255))
-// font.capitalization: Font.AllUppercase
-// color: "#999999"
-// font.pixelSize: 11
-// }
-}
diff --git a/tests/manual/testbed/Slider.qml b/tests/manual/testbed/Slider.qml
deleted file mode 100644
index a199a7f..0000000
--- a/tests/manual/testbed/Slider.qml
+++ /dev/null
@@ -1,131 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: slider
-
- property real value: 1
- property real maximum: 1
- property real minimum: 0
- property string caption: ""
- property bool pressed: mouseArea.pressed
- property bool integer: false
- property string handleSource: "images/slider_handle.png"
-
- width: parent.width
- height: 20
-
- function updatePos() {
- if (maximum > minimum) {
- var pos = (track.width - 10) * (value - minimum) / (maximum - minimum) + 5;
- return Math.min(Math.max(pos, 5), track.width - 5) - 10;
- } else {
- return 5;
- }
- }
-
- Text {
- id: captionText
- width: 110
- anchors.verticalCenter: parent.verticalCenter
- horizontalAlignment: Text.AlignRight
- text: slider.caption + ':'
- font.family: "Arial"
- font.pixelSize: 11
- color: "#B3B3B3"
- }
-
- Text {
- id: valueCaption
- anchors.left: captionText.right
- anchors.leftMargin: 11
- anchors.verticalCenter: parent.verticalCenter
- width: 35
- horizontalAlignment: Text.AlignLeft
- text: integer ? slider.value.toFixed(0) : slider.value.toFixed(1)
- font.family: "Arial"
- font.pixelSize: 11
- color: "#999999"
- }
-
- Item {
- id: track
- height: parent.height
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- anchors.leftMargin: parent.width / 2
- anchors.right: parent.right
- anchors.rightMargin: 10
-
- BorderImage {
- source: "images/slider_track.png"
- anchors.left: parent.left
- anchors.right: parent.right
- border.right: 2
- }
-
- BorderImage {
- id: trackFilled
- anchors.left: minimum == -maximum ? (value < 0 ? handle.horizontalCenter : parent.horizontalCenter) : parent.left
- anchors.right: minimum == -maximum && value < 0 ? parent.horizontalCenter : handle.horizontalCenter
- source: "images/slider_track_filled.png"
- border.left: 3
- border.right: 3
- }
-
- Image {
- id: handle;
- smooth: true
- source: mouseArea.pressed ? 'images/slider_handle_pressed.png' : slider.handleSource
- x: updatePos()
- }
-
- MouseArea {
- id: mouseArea
- anchors { left: parent.left; right: parent.right; verticalCenter: parent.verticalCenter }
- height: 16
- preventStealing: true
-
- onPressed: {
- var handleX = Math.max(0, Math.min(mouseX, mouseArea.width))
- var realValue = (maximum - minimum) * handleX / mouseArea.width + minimum;
- value = slider.integer ? Math.round(realValue) : realValue;
- }
-
- onPositionChanged: {
- if (pressed) {
- var handleX = Math.max(0, Math.min(mouseX, mouseArea.width))
- var realValue = (maximum - minimum) * handleX / mouseArea.width + minimum;
- value = slider.integer ? Math.round(realValue) : realValue;
- }
- }
- }
- }
-}
diff --git a/tests/manual/testbed/TestBedModel.qml b/tests/manual/testbed/TestBedModel.qml
deleted file mode 100644
index d396173..0000000
--- a/tests/manual/testbed/TestBedModel.qml
+++ /dev/null
@@ -1,50 +0,0 @@
-/*****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Add-On Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-*****************************************************************************/
-
-import QtQuick 2.12
-
-ListModel {
- id: testcaseModel
- ListElement { name: "TestDisplace.qml"; group: "Distortion"; last: true }
- ListElement { name: "TestOpacityMask.qml"; group: "Mask" }
- ListElement { name: "TestThresholdMask.qml"; group: "Mask"; last: true }
- ListElement { name: "TestGlow.qml"; group: "Glow" }
- ListElement { name: "TestRectangularGlow.qml"; group: "Glow"; last: true }
- ListElement { name: "TestFastBlur.qml"; group: "Blur" }
- ListElement { name: "TestDropShadow.qml"; group: "Drop Shadow" }
- ListElement { name: "TestLinearGradient.qml"; group: "Gradient" }
- ListElement { name: "TestConicalGradient.qml"; group: "Gradient" }
- ListElement { name: "TestRadialGradient.qml"; group: "Gradient"; last: true }
- ListElement { name: "TestColorize.qml"; group: "Color" }
- ListElement { name: "TestColorOverlay.qml"; group: "Color" }
- ListElement { name: "TestHueSaturation.qml"; group: "Color" }
- ListElement { name: "TestBrightnessContrast.qml"; group: "Color" }
- ListElement { name: "TestDesaturate.qml"; group: "Color" }
- ListElement { name: "TestLevelAdjust.qml"; group: "Color" }
- ListElement { name: "TestGammaAdjust.qml"; group: "Color"; last: true }
-}
diff --git a/tests/manual/testbed/TestBrightnessContrast.qml b/tests/manual/testbed/TestBrightnessContrast.qml
deleted file mode 100644
index 20ce6cd..0000000
--- a/tests/manual/testbed/TestBrightnessContrast.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- }
-
- BrightnessContrast {
- id: effect
- anchors.fill: imageSource
- brightness: brigthnessSlider.value
- contrast: contrastSlider.value
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: brigthnessSlider
- minimum: -1.0
- maximum: 1.0
- value: 0.0
- caption: "brightness"
- }
- Slider {
- id: contrastSlider
- minimum: -1.0
- maximum: 1.0
- value: 0.0
- caption: "contrast"
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestCaseTemplate.qml b/tests/manual/testbed/TestCaseTemplate.qml
deleted file mode 100644
index 6d15829..0000000
--- a/tests/manual/testbed/TestCaseTemplate.qml
+++ /dev/null
@@ -1,130 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: main
-
- property real imageSize: Math.min(height, width - 220)
- default property alias testItem : testItemContainer.children
- property alias controls: controlsColumn.children
- property string currentTest: ""
- property string fps: "nan"
- property color bgColor: "black"
-
- property int dummy: 0
- property int fpsCount: 0
-
- anchors.fill: parent
-
- onDummyChanged: fpsCount++;
-
- NumberAnimation on dummy {
- duration: 500
- from: 0
- to: 10000
- loops: Animation.Infinite
- }
-
- Timer {
- interval: 1000
- repeat: true
- running: true
- onTriggered: {
- fps = "" + fpsCount;
- fpsCount = 0;
- }
- }
-
- Rectangle {
- id: backgroundColor
- anchors.fill: testItemContainer
- color: bgColor
- }
-
- Image {
- id: background
- anchors.fill: testItemContainer
- fillMode: Image.Tile
- source: bgColor.toString() == "#010101" ? "images/background.png" : ""
- }
-
- Item {
- id: testItemContainer
- property real margin: 0
- x: (parent.width - testParameterContainer.width - width) / 2
- anchors.verticalCenter: parent.verticalCenter
- anchors.top: undefined
- width: Math.min(parent.height - 20, parent.width - testParameterContainer.width - 20)
- height: width
- }
-
- Image {
- id: titlebar
- source: "images/title.png"
- anchors.top: parent.top
- anchors.right: parent.right
- width: 300
-
- Text {
- id: effectsListTitle
- anchors.fill: parent
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- text: currentTest
- color: "white"
- font.family: "Arial"
- font.bold: true
- font.pixelSize: 12
- }
- }
-
- Rectangle {
- id: testParameterContainer
- anchors.top: titlebar.bottom
- anchors.bottom: parent.bottom
- anchors.right: parent.right
- width: 300
- color: "#171717"
-
- Flickable {
- id: slidersFlickable
- anchors.fill: parent
- contentHeight: controlsColumn.height
- interactive: contentHeight > height
- clip: true
-
- Column {
- id: controlsColumn
- anchors.left: parent.left
- anchors.right: parent.right
- }
- }
- }
-}
diff --git a/tests/manual/testbed/TestColorOverlay.qml b/tests/manual/testbed/TestColorOverlay.qml
deleted file mode 100644
index 112aa35..0000000
--- a/tests/manual/testbed/TestColorOverlay.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- source: "images/butterfly.png"
- }
-
- ColorOverlay {
- id: effect
- anchors.fill: imageSource
- color: colorPicker.color
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "color"
- ColorPicker {
- id: colorPicker
- hue: 0.5
- saturation: 0.5
- lightness: 0.5
- alpha: 0.5
- }
- },
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestColorize.qml b/tests/manual/testbed/TestColorize.qml
deleted file mode 100644
index fed0d15..0000000
--- a/tests/manual/testbed/TestColorize.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- forcedUpdateAnimationRunning: updateCheckBox.selected
- }
-
- Colorize {
- id: effect
- anchors.fill: imageSource
- hue: colorPicker.hue
- saturation: colorPicker.saturation
- lightness: colorPicker.lightness
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- ColorPicker {
- id: colorPicker
- hue: 0.5
- saturation: 0.5
- lightness: 0.5
- showAlphaSlider: false
- }
- },
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestConicalGradient.qml b/tests/manual/testbed/TestConicalGradient.qml
deleted file mode 100644
index 8c7b145..0000000
--- a/tests/manual/testbed/TestConicalGradient.qml
+++ /dev/null
@@ -1,134 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: maskImage
- source: "images/butterfly.png"
- }
-
-
- ConicalGradient {
- id: effect
- anchors.fill: parent
- cached: cachedCheckBox.selected
- visible: enabledCheckBox.selected
- source: maskCheckBox.selected ? maskImage : undefined
- horizontalOffset: (offsetPicker.xValue - 0.5) * width
- verticalOffset: (offsetPicker.yValue - 0.5) * height
- gradient: Gradient {
- GradientStop {position: 0.0; color: gradientBeginColorSlider.color}
- GradientStop {position: 1.0; color: gradientEndColorSlider.color}
- }
- angle: startAngleSlider.value
- }
-
- PositionPicker {
- id: offsetPicker
- xValue: 0.5
- yValue: 0.5
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Label {
- caption: "horizontalOffset"
- text: effect.horizontalOffset.toFixed(1)
- }
- Label {
- caption: "verticalOffset"
- text: effect.verticalOffset.toFixed(1)
- }
- Slider {
- id: startAngleSlider
- caption: "angle"
- minimum: -360
- maximum: 360
- value: 0
- }
- CheckBox {
- id: maskCheckBox
- caption: "Use Mask"
- }
- },
-
- Control {
- caption: "gradient begin color"
- ColorPicker {
- id: gradientBeginColorSlider
- hue: 0.67
- saturation: 1.0
- lightness: 0.5
- }
- },
-
- Control {
- caption: "gradient end color"
- ColorPicker {
- id: gradientEndColorSlider
- hue: 0.5
- saturation: 1.0
- lightness: 0.5
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestDesaturate.qml b/tests/manual/testbed/TestDesaturate.qml
deleted file mode 100644
index 465a833..0000000
--- a/tests/manual/testbed/TestDesaturate.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- }
-
- Desaturate {
- id: effect
- anchors.fill: imageSource
- desaturation: grayscaleSlider.value
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: grayscaleSlider
- minimum: 0
- maximum: 1.0
- value: 1.0
- caption: "desaturation"
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestDisplace.qml b/tests/manual/testbed/TestDisplace.qml
deleted file mode 100644
index 1aca077..0000000
--- a/tests/manual/testbed/TestDisplace.qml
+++ /dev/null
@@ -1,131 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
-
- ImageSource {
- id: imageSource
- source: "images/bug.jpg"
- }
-
- Rectangle {
- id: displacementMapSource
- visible: !enabledCheckBox.selected
- color: "#8080ff"
- smooth: true
- anchors.fill: parent
- Image {
- id: di
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- sourceSize: Qt.size(128, 128)
- source: "images/glass_normal.png"
- smooth: true
- }
- }
-
- Displace {
- id: effect
- anchors.fill: imageSource
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- displacementSource: displacementMapSource
- displacement: displacementScaleSlider.value
- smooth: true
- MouseArea {
- anchors.fill: parent
- onClicked: { di.x = mouseX - di.width/2; di.y = mouseY - di.height/2; }
- onPositionChanged: { if (pressed) { di.x = mouseX - di.width/2; di.y = mouseY - di.height/2; } }
- }
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: displacementScaleSlider
- caption: "displacement"
- minimum: -0.5
- maximum: 0.5
- value: 0.1
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- RadioButtonColumn {
- id: sourceType
- value: "shaderEffectSource"
- caption: "source type"
- RadioButton {
- caption: "shaderEffectSource"
- selected: caption == sourceType.value
- onPressedChanged: sourceType.value = caption
- }
- RadioButton {
- caption: "image"
- selected: caption == sourceType.value
- onPressedChanged: {
- sourceType.value = caption
- updateCheckBox.selected = false
- }
- }
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestDropShadow.qml b/tests/manual/testbed/TestDropShadow.qml
deleted file mode 100644
index f67cc7b..0000000
--- a/tests/manual/testbed/TestDropShadow.qml
+++ /dev/null
@@ -1,128 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
-
- ImageSource {
- id: imageSource
- source: "images/butterfly.png"
- anchors.centerIn: parent
- }
-
- DropShadow {
- id: effect
- horizontalOffset: (offsetPicker.xValue - 0.5) * width
- verticalOffset: (offsetPicker.yValue - 0.5) * height
- anchors.fill: imageSource
- radius: radiusSlider.value
- spread: spreadSlider.value
- color: colorPicker.color
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- }
-
- PositionPicker {
- id: offsetPicker
- xValue: 0.51
- yValue: 0.51
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Label {
- caption: "horizontalOffset"
- text: effect.horizontalOffset.toFixed(1)
- }
- Label {
- caption: "verticalOffset"
- text: effect.verticalOffset.toFixed(1)
- }
- Slider {
- id: radiusSlider
- minimum: 0
- maximum: 64
- value: 8
- caption: "radius"
- }
- Slider {
- id: spreadSlider
- minimum: 0
- maximum: 1.0
- value: 0.0
- caption: "spread"
- }
- },
-
- Control {
- caption: "color"
- ColorPicker {
- id: colorPicker
- hue: 0
- saturation: 0
- lightness: 0
- alpha: 0.5
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- color: "#ababab"
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestFastBlur.qml b/tests/manual/testbed/TestFastBlur.qml
deleted file mode 100644
index 70fb577..0000000
--- a/tests/manual/testbed/TestFastBlur.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource;
- }
-
- FastBlur {
- id: effect
- anchors.fill: imageSource
- radius: blurSlider.value
- transparentBorder: transparentBorderCheckBox.selected
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: blurSlider
- minimum: 0.0
- maximum: 64.0
- value: 32
- caption: "radius"
- }
- CheckBox {
- id: transparentBorderCheckBox
- caption: "transparentBorder"
- selected: false
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestGammaAdjust.qml b/tests/manual/testbed/TestGammaAdjust.qml
deleted file mode 100644
index 9ea307e..0000000
--- a/tests/manual/testbed/TestGammaAdjust.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- source: "images/butterfly.png"
- }
-
- GammaAdjust {
- id: effect
- anchors.fill: imageSource
- gamma: gammaSlider.value
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: gammaSlider
- minimum: 0
- maximum: 2.0
- value: 1.0
- caption: "gamma"
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestGlow.qml b/tests/manual/testbed/TestGlow.qml
deleted file mode 100644
index 574eda8..0000000
--- a/tests/manual/testbed/TestGlow.qml
+++ /dev/null
@@ -1,110 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
-
- ImageSource {
- id: imageSource
- source: "images/butterfly.png"
- anchors.centerIn: parent
- }
-
- Glow {
- id: effect
- anchors.fill: imageSource
- color: colorPicker.color
- spread: spreadSlider.value
- radius: radiusSlider.value
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: radiusSlider
- minimum: 0.0
- maximum: 16.0
- value: 8.0
- caption: "radius"
- }
- Slider {
- id: spreadSlider
- caption: "spread"
- minimum: 0.0
- maximum: 1.0
- value: 0.3
- }
- },
-
- Control {
- caption: "color"
- ColorPicker {
- id: colorPicker
- hue: 0
- saturation: 1
- lightness: 1
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestHueSaturation.qml b/tests/manual/testbed/TestHueSaturation.qml
deleted file mode 100644
index 4124767..0000000
--- a/tests/manual/testbed/TestHueSaturation.qml
+++ /dev/null
@@ -1,105 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- source: "images/butterfly.png"
- }
-
- HueSaturation {
- id: effect
- anchors.fill: imageSource
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- hue: hueSlider.value
- saturation: saturationSlider.value
- lightness: lightnessSlider.value
- source: imageSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: hueSlider
- caption: "hue"
- minimum: -1.0
- maximum: 1.0
- value: 0.0
- }
- Slider {
- id: saturationSlider
- caption: "saturation"
- minimum: -1.0
- maximum: 1.0
- value: 0.0
- }
- Slider {
- id: lightnessSlider
- caption: "lightness"
- minimum: -1.0
- maximum: 1.0
- value: 0.0
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestLevelAdjust.qml b/tests/manual/testbed/TestLevelAdjust.qml
deleted file mode 100644
index 7e1b976..0000000
--- a/tests/manual/testbed/TestLevelAdjust.qml
+++ /dev/null
@@ -1,149 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- source: "images/butterfly.png"
- }
-
- LevelAdjust {
- id: effect
- anchors.fill: imageSource
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
-
- minimumInput: Qt.rgba(redInput.blackPointValue + valueInput.blackPointValue * (redInput.whitePointValue - redInput.blackPointValue), greenInput.blackPointValue + valueInput.blackPointValue * (greenInput.whitePointValue - greenInput.blackPointValue), blueInput.blackPointValue + valueInput.blackPointValue * (blueInput.whitePointValue - blueInput.blackPointValue), alphaInput.blackPointValue)
- maximumInput: Qt.rgba(redInput.whitePointValue - (1.0 - valueInput.whitePointValue) * (redInput.whitePointValue - redInput.blackPointValue), greenInput.whitePointValue - (1.0 - valueInput.whitePointValue) * (greenInput.whitePointValue - greenInput.blackPointValue), blueInput.whitePointValue - (1.0 - valueInput.whitePointValue) * (blueInput.whitePointValue - blueInput.blackPointValue), alphaInput.whitePointValue)
- minimumOutput: Qt.rgba(redOutput.blackPointValue + valueOutput.blackPointValue * (redOutput.whitePointValue - redOutput.blackPointValue), greenOutput.blackPointValue + valueOutput.blackPointValue * (greenOutput.whitePointValue - greenOutput.blackPointValue), blueOutput.blackPointValue + valueOutput.blackPointValue * (blueOutput.whitePointValue - blueOutput.blackPointValue), alphaOutput.blackPointValue)
- maximumOutput: Qt.rgba(redOutput.whitePointValue - (1.0 - valueOutput.whitePointValue) * (redOutput.whitePointValue - redOutput.blackPointValue), greenOutput.whitePointValue - (1.0 - valueOutput.whitePointValue) * (greenOutput.whitePointValue - greenOutput.blackPointValue), blueOutput.whitePointValue - (1.0 - valueOutput.whitePointValue) * (blueOutput.whitePointValue - blueOutput.blackPointValue), alphaOutput.whitePointValue)
-
- gamma: Qt.vector3d((redInput.gamma * valueInput.gamma), (greenInput.gamma * valueInput.gamma), (blueInput.gamma * valueInput.gamma))
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "RGB"
- LevelSlider {
- id: valueInput
- caption: "Input"
- }
- LevelSlider {
- id: valueOutput
- showMidPoint: false
- caption: "Output"
- }
- },
- Control {
- caption: "Red"
- __hide: true
- LevelSlider {
- id: redInput
- caption: "Input"
- }
- LevelSlider {
- id: redOutput
- showMidPoint: false
- caption: "Output"
- }
- },
- Control {
- caption: "Green"
- __hide: true
- LevelSlider {
- id: greenInput
- caption: "Input"
- }
- LevelSlider {
- id: greenOutput
- showMidPoint: false
- caption: "Output"
- }
- },
- Control {
- caption: "Blue"
- __hide: true
- LevelSlider {
- id: blueInput
- caption: "Input"
- }
- LevelSlider {
- id: blueOutput
- showMidPoint: false
- caption: "Output"
- }
- },
- Control {
- caption: "Alpha"
- __hide: true
- LevelSlider {
- id: alphaInput
- showMidPoint: false
- caption: "Input"
- }
- LevelSlider {
- id: alphaOutput
- showMidPoint: false
- caption: "Output"
- }
- },
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestLinearGradient.qml b/tests/manual/testbed/TestLinearGradient.qml
deleted file mode 100644
index 500dd5a..0000000
--- a/tests/manual/testbed/TestLinearGradient.qml
+++ /dev/null
@@ -1,144 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: maskImage
- source: "images/butterfly.png"
- }
-
- LinearGradient {
- id: effect
- anchors.fill: parent
- cached: cachedCheckBox.selected
- visible: enabledCheckBox.selected
- source: maskCheckBox.selected ? maskImage : undefined
- start: Qt.point(startPicker.xValue * width, startPicker.yValue * height)
- end: Qt.point(endPicker.xValue * width, endPicker.yValue * height)
- gradient: Gradient {
- GradientStop {
- position: 0.0
- color: gradientBeginColorSlider.color
- }
- GradientStop {
- position: 1.0
- color: gradientEndColorSlider.color
- }
- }
- }
-
- PositionPicker {
- id: startPicker
- xValue: 0.2
- yValue: 0.2
- }
- PositionPicker {
- id: endPicker
- xValue: 0.8
- yValue: 0.8
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Label {
- caption: "startX"
- text: startPicker.xValue.toFixed(1)
- }
- Label {
- caption: "startY"
- text: startPicker.yValue.toFixed(1)
- }
- Label {
- caption: "endX"
- text: endPicker.xValue.toFixed(1)
- }
- Label {
- caption: "endY"
- text: endPicker.yValue.toFixed(1)
- }
- CheckBox {
- id: maskCheckBox
- caption: "Use Mask"
- }
- },
-
- Control {
- caption: "gradient begin color"
- ColorPicker {
- id: gradientBeginColorSlider
- hue: 0.67
- saturation: 1.0
- lightness: 0.5
- }
- },
-
- Control {
- caption: "gradient end color"
- ColorPicker {
- id: gradientEndColorSlider
- hue: 0.5
- saturation: 1.0
- lightness: 0.5
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestOpacityMask.qml b/tests/manual/testbed/TestOpacityMask.qml
deleted file mode 100644
index 12b1b0c..0000000
--- a/tests/manual/testbed/TestOpacityMask.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- source: "images/bug.jpg"
- forcedUpdateAnimationRunning: false
- }
- ImageSource {
- id: maskSource
- source: "images/butterfly.png"
- }
-
- OpacityMask {
- id: effect
- anchors.fill: imageSource
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- maskSource: maskSource
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestRadialGradient.qml b/tests/manual/testbed/TestRadialGradient.qml
deleted file mode 100644
index af17b5f..0000000
--- a/tests/manual/testbed/TestRadialGradient.qml
+++ /dev/null
@@ -1,149 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: maskImage
- source: "images/butterfly.png"
- }
-
- RadialGradient {
- id: effect
- anchors.fill: parent
- cached: cachedCheckBox.selected
- visible: enabledCheckBox.selected
- source: maskCheckBox.selected ? maskImage : undefined
- horizontalOffset: (offsetPicker.xValue - 0.5) * width
- verticalOffset: (offsetPicker.yValue - 0.5) * height
- horizontalRadius: horizontalRadiusSlider.value
- verticalRadius: verticalRadiusSlider.value
- angle: angleSlider.value
- gradient: Gradient {
- GradientStop {position: 0.0; color: gradientBeginColorSlider.color}
- GradientStop {position: 1.0; color: gradientEndColorSlider.color}
- }
- }
-
- PositionPicker {
- id: offsetPicker
- xValue: 0.5
- yValue: 0.5
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Label {
- caption: "horizontalOffset"
- text: effect.horizontalOffset.toFixed(1)
- }
- Label {
- caption: "verticalOffset"
- text: effect.verticalOffset.toFixed(1)
- }
- Slider {
- id: horizontalRadiusSlider
- minimum: 0
- maximum: effect.width
- value: effect.width / 2
- caption: "horizontalRadius"
- }
- Slider {
- id: verticalRadiusSlider
- minimum: 0
- maximum: effect.height
- value: effect.height / 2
- caption: "verticalRadius"
- }
- Slider {
- id: angleSlider
- minimum: 0
- maximum: 360
- value: 0
- caption: "angle"
- }
- CheckBox {
- id: maskCheckBox
- caption: "Use Mask"
- }
- },
-
- Control {
- caption: "gradient begin color"
- ColorPicker {
- id: gradientBeginColorSlider
- hue: 0.67
- saturation: 1.0
- lightness: 0.5
- }
- },
-
- Control {
- caption: "gradient end color"
- ColorPicker {
- id: gradientEndColorSlider
- hue: 0.5
- saturation: 1.0
- lightness: 0.5
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestRectangularGlow.qml b/tests/manual/testbed/TestRectangularGlow.qml
deleted file mode 100644
index fd5a3a0..0000000
--- a/tests/manual/testbed/TestRectangularGlow.qml
+++ /dev/null
@@ -1,126 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
-
- RectangularGlow {
- id: effect
- anchors.fill: rectSource
- color: colorPicker.color
- spread: spreadSlider.value
- glowRadius: sizeSlider.value
- visible: enabledCheckBox.selected
- opacity: opacitySlider.value
- cornerRadius: radiusSlider.value
- cached: cachedCheckBox.selected
- }
-
- Rectangle {
- id: rectSource
- visible: true
- anchors.centerIn: parent
- width: Math.round(parent.width / 1.5)
- height: Math.round(parent.height / 2)
- radius: 25
- color: "black"
- smooth: true
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: spreadSlider
- caption: "spread"
- minimum: 0.0
- maximum: 1.0
- value: 0.5
- }
- Slider {
- id: sizeSlider
- minimum: 0
- maximum: rectSource.width / 2.0
- value: 10.0
- caption: "glowRadius"
- onValueChanged: radiusSlider.value = Math.max(0, Math.min(radiusSlider.value, radiusSlider.maximum))
- }
- Slider {
- id: radiusSlider
- minimum: 0
- maximum: Math.min(effect.width, effect.height) / 2 + effect.glowRadius;
- caption: "cornerRadius"
- value: rectSource.radius + effect.glowRadius
- }
- Slider {
- id: opacitySlider
- minimum: 0
- maximum: 1.0
- value: 1.0
- caption: "opacity"
- }
- },
-
- Control {
- caption: "color"
- ColorPicker {
- id: colorPicker
- hue: 0
- saturation: 1
- lightness: 1
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/TestThresholdMask.qml b/tests/manual/testbed/TestThresholdMask.qml
deleted file mode 100644
index 97bead2..0000000
--- a/tests/manual/testbed/TestThresholdMask.qml
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtGraphicalEffects 1.12
-
-TestCaseTemplate {
- ImageSource {
- id: imageSource
- source: "images/bug.jpg"
- }
- ImageSource {
- id: maskSource
- source: "images/fog.png"
- }
-
- ThresholdMask {
- id: effect
- anchors.fill: imageSource
- visible: enabledCheckBox.selected
- cached: cachedCheckBox.selected
- source: imageSource
- maskSource: maskSource
- threshold: thresholdSlider.value
- spread: fringeSlider.value
- }
-
- bgColor: bgColorPicker.color
- controls: [
- Control {
- caption: "general"
- Slider {
- id: thresholdSlider
- minimum: 0.0
- maximum: 1.0
- value: 0.4
- caption: "threshold"
- }
- Slider {
- id: fringeSlider
- minimum: 0.0
- maximum: 1.0
- value: 0.2
- caption: "spread"
- }
- },
-
- Control {
- caption: "advanced"
- last: true
- Label {
- caption: "Effect size"
- text: effect.width + "x" + effect.height
- }
- Label {
- caption: "FPS"
- text: fps
- }
- CheckBox {
- id: cachedCheckBox
- caption: "cached"
- }
- CheckBox {
- id: enabledCheckBox
- caption: "enabled"
- }
- CheckBox {
- id: updateCheckBox
- caption: "animated"
- selected: false
- }
- BGColorPicker {
- id: bgColorPicker
- }
- }
- ]
-}
diff --git a/tests/manual/testbed/images/background.png b/tests/manual/testbed/images/background.png
deleted file mode 100644
index 72cb9f0..0000000
--- a/tests/manual/testbed/images/background.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/bug.jpg b/tests/manual/testbed/images/bug.jpg
deleted file mode 100644
index 43e3676..0000000
--- a/tests/manual/testbed/images/bug.jpg
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/butterfly.png b/tests/manual/testbed/images/butterfly.png
deleted file mode 100644
index ce544f2..0000000
--- a/tests/manual/testbed/images/butterfly.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/checkbox_inner.png b/tests/manual/testbed/images/checkbox_inner.png
deleted file mode 100644
index 52dce9c..0000000
--- a/tests/manual/testbed/images/checkbox_inner.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/checkbox_outer.png b/tests/manual/testbed/images/checkbox_outer.png
deleted file mode 100644
index 6efa85f..0000000
--- a/tests/manual/testbed/images/checkbox_outer.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/checker.png b/tests/manual/testbed/images/checker.png
deleted file mode 100644
index b7f067b..0000000
--- a/tests/manual/testbed/images/checker.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/collapse.png b/tests/manual/testbed/images/collapse.png
deleted file mode 100644
index 1b1259e..0000000
--- a/tests/manual/testbed/images/collapse.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/color_selection_hl.png b/tests/manual/testbed/images/color_selection_hl.png
deleted file mode 100644
index eeb9181..0000000
--- a/tests/manual/testbed/images/color_selection_hl.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/color_selection_mask.png b/tests/manual/testbed/images/color_selection_mask.png
deleted file mode 100644
index 9a7e8f8..0000000
--- a/tests/manual/testbed/images/color_selection_mask.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/expand.png b/tests/manual/testbed/images/expand.png
deleted file mode 100644
index 49f9c15..0000000
--- a/tests/manual/testbed/images/expand.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/fog.png b/tests/manual/testbed/images/fog.png
deleted file mode 100644
index 1a51c01..0000000
--- a/tests/manual/testbed/images/fog.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/glass_normal.png b/tests/manual/testbed/images/glass_normal.png
deleted file mode 100644
index ba360ef..0000000
--- a/tests/manual/testbed/images/glass_normal.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/group_bottom.png b/tests/manual/testbed/images/group_bottom.png
deleted file mode 100644
index 08961d0..0000000
--- a/tests/manual/testbed/images/group_bottom.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/group_top.png b/tests/manual/testbed/images/group_top.png
deleted file mode 100644
index 210a57f..0000000
--- a/tests/manual/testbed/images/group_top.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_blend.png b/tests/manual/testbed/images/icon_blend.png
deleted file mode 100644
index 4112515..0000000
--- a/tests/manual/testbed/images/icon_blend.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_blur.png b/tests/manual/testbed/images/icon_blur.png
deleted file mode 100644
index f0c6f5e..0000000
--- a/tests/manual/testbed/images/icon_blur.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_color.png b/tests/manual/testbed/images/icon_color.png
deleted file mode 100644
index 649cf75..0000000
--- a/tests/manual/testbed/images/icon_color.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_distortion.png b/tests/manual/testbed/images/icon_distortion.png
deleted file mode 100644
index 11bbece..0000000
--- a/tests/manual/testbed/images/icon_distortion.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_drop_shadow.png b/tests/manual/testbed/images/icon_drop_shadow.png
deleted file mode 100644
index 77b2f88..0000000
--- a/tests/manual/testbed/images/icon_drop_shadow.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_glow.png b/tests/manual/testbed/images/icon_glow.png
deleted file mode 100644
index 019b4b5..0000000
--- a/tests/manual/testbed/images/icon_glow.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_gradient.png b/tests/manual/testbed/images/icon_gradient.png
deleted file mode 100644
index 0d836b3..0000000
--- a/tests/manual/testbed/images/icon_gradient.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_mask.png b/tests/manual/testbed/images/icon_mask.png
deleted file mode 100644
index ceca052..0000000
--- a/tests/manual/testbed/images/icon_mask.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/icon_motion_blur.png b/tests/manual/testbed/images/icon_motion_blur.png
deleted file mode 100644
index 89ceb66..0000000
--- a/tests/manual/testbed/images/icon_motion_blur.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/radiobutton_inner.png b/tests/manual/testbed/images/radiobutton_inner.png
deleted file mode 100644
index e77ccc4..0000000
--- a/tests/manual/testbed/images/radiobutton_inner.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/radiobutton_outer.png b/tests/manual/testbed/images/radiobutton_outer.png
deleted file mode 100644
index 6568c65..0000000
--- a/tests/manual/testbed/images/radiobutton_outer.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_handle.png b/tests/manual/testbed/images/slider_handle.png
deleted file mode 100644
index 633bbe9..0000000
--- a/tests/manual/testbed/images/slider_handle.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_handle_b.png b/tests/manual/testbed/images/slider_handle_b.png
deleted file mode 100644
index 4c2dd3c..0000000
--- a/tests/manual/testbed/images/slider_handle_b.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_handle_black.png b/tests/manual/testbed/images/slider_handle_black.png
deleted file mode 100644
index 43bbeb8..0000000
--- a/tests/manual/testbed/images/slider_handle_black.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_handle_g.png b/tests/manual/testbed/images/slider_handle_g.png
deleted file mode 100644
index 86decaf..0000000
--- a/tests/manual/testbed/images/slider_handle_g.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_handle_gray.png b/tests/manual/testbed/images/slider_handle_gray.png
deleted file mode 100644
index 1b07aad..0000000
--- a/tests/manual/testbed/images/slider_handle_gray.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_handle_pressed.png b/tests/manual/testbed/images/slider_handle_pressed.png
deleted file mode 100644
index 10e5ed9..0000000
--- a/tests/manual/testbed/images/slider_handle_pressed.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_handle_r.png b/tests/manual/testbed/images/slider_handle_r.png
deleted file mode 100644
index 1bc1614..0000000
--- a/tests/manual/testbed/images/slider_handle_r.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_handle_white.png b/tests/manual/testbed/images/slider_handle_white.png
deleted file mode 100644
index 4f4f551..0000000
--- a/tests/manual/testbed/images/slider_handle_white.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_track.png b/tests/manual/testbed/images/slider_track.png
deleted file mode 100644
index 3ab0d21..0000000
--- a/tests/manual/testbed/images/slider_track.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_track_filled.png b/tests/manual/testbed/images/slider_track_filled.png
deleted file mode 100644
index 045e6c8..0000000
--- a/tests/manual/testbed/images/slider_track_filled.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_track_left.png b/tests/manual/testbed/images/slider_track_left.png
deleted file mode 100644
index b1cc989..0000000
--- a/tests/manual/testbed/images/slider_track_left.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/slider_track_right.png b/tests/manual/testbed/images/slider_track_right.png
deleted file mode 100644
index 2936c7c..0000000
--- a/tests/manual/testbed/images/slider_track_right.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/title.png b/tests/manual/testbed/images/title.png
deleted file mode 100644
index e3110a2..0000000
--- a/tests/manual/testbed/images/title.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/workarea_left.png b/tests/manual/testbed/images/workarea_left.png
deleted file mode 100644
index 3b8bb71..0000000
--- a/tests/manual/testbed/images/workarea_left.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/images/workarea_right.png b/tests/manual/testbed/images/workarea_right.png
deleted file mode 100644
index 2d82242..0000000
--- a/tests/manual/testbed/images/workarea_right.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbed/testBed.qml b/tests/manual/testbed/testBed.qml
deleted file mode 100644
index b74bd1a..0000000
--- a/tests/manual/testbed/testBed.qml
+++ /dev/null
@@ -1,156 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Rectangle {
- id: main
-
- width: 950
- height: 800
- color: '#171717'
-
- ListView {
- id: testCaseList
- width: 160
- anchors.top: titlebar.bottom
- anchors.left: parent.left
- anchors.bottom: parent.bottom
-
- model: TestBedModel {}
- delegate: delegateItem
-
- section.property: "group"
- section.criteria: ViewSection.FullString
- section.delegate: sectionHeading
-
- }
-
- Image {
- id: titlebar
- source: "images/title.png"
- anchors.top: parent.top
- anchors.left: parent.left
- width: 160
-
- Text {
- id: effectsListTitle
- anchors.fill: parent
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- text: "Effects"
- color: "white"
- font.family: "Arial"
- font.bold: true
- font.pixelSize: 12
- }
- }
-
- Loader {
- id: testLoader
- anchors {left: testCaseList.right; right: parent.right; top: parent.top; bottom: parent.bottom}
- }
-
- Image {
- anchors {right: testLoader.right; rightMargin: 300; top: parent.top; bottom: parent.bottom}
- source: "images/workarea_right.png"
- }
-
- Image {
- anchors {left: testLoader.left; top: parent.top; bottom: parent.bottom}
- source: "images/workarea_left.png"
- }
-
-
- Component {
- id: sectionHeading
- Item {
- width: parent.width
- height: 23
- Image {
- source: "images/group_top.png"
- width: parent.width
- }
- Image {
- id: icon
- source: "images/icon_" + section.replace(/ /g, "_").toLowerCase() + ".png"
- anchors {top: parent.top; topMargin: 6; left: parent.left; leftMargin: 6}
- }
- Text {
- id: sectionText
- text: section
- anchors {fill: parent; leftMargin: 25; topMargin: 3}
- color: "white"
- verticalAlignment: Text.AlignVCenter
- font.family: "Arial"
- font.bold: true
- font.pixelSize: 12
- }
- }
- }
-
- Component {
- id: delegateItem
- Item {
- width: ListView.view.width
- height: last ? 27 : 20
-
- Image {
- source: "images/group_bottom.png"
- anchors.bottom: parent.bottom
- anchors.left: parent.left
- anchors.right: parent.right
- smooth: true
- visible: last && index != 20 ? 1 : 0
- }
-
- Rectangle {
- width: parent.width
- color: "#323232"
- height: 20
- visible: (testLoader.source.toString().search(name) != -1)
- }
- Text {
- id: delegateText;
- anchors {fill: parent; leftMargin: 25; topMargin: 3}
- text: name.slice(4, name.indexOf("."))
- font.family: "Arial"
- font.pixelSize: 12
- color: delegateMouseArea.pressed ? "white" : "#CCCCCC"
- }
- MouseArea {
- id: delegateMouseArea
- anchors.fill: parent;
- onClicked: {
- testLoader.source = name;
- testLoader.item.currentTest = delegateText.text;
- }
- }
- }
- }
-}
diff --git a/tests/manual/testbed/testbed.qmlproject b/tests/manual/testbed/testbed.qmlproject
deleted file mode 100644
index d4909f8..0000000
--- a/tests/manual/testbed/testbed.qmlproject
+++ /dev/null
@@ -1,16 +0,0 @@
-import QmlProject 1.0
-
-Project {
- /* Include .qml, .js, and image files from current directory and subdirectories */
- QmlFiles {
- directory: "."
- }
- JavaScriptFiles {
- directory: "."
- }
- ImageFiles {
- directory: "."
- }
- /* List of plugin directories passed to QML runtime */
- // importPaths: [ " ../exampleplugin " ]
-}
diff --git a/tests/system/auto/auto.pro b/tests/system/auto/auto.pro
deleted file mode 100644
index 8554607..0000000
--- a/tests/system/auto/auto.pro
+++ /dev/null
@@ -1,16 +0,0 @@
-QT += testlib
-
-TARGET = tst_imagecompare
-CONFIG += console
-CONFIG -= app_bundle
-TEMPLATE = app
-
-SOURCES += tst_imagecompare.cpp \
- imagecompare.cpp \
- main.cpp
-
-DEFINES += SRCDIR=\\\"$$PWD/\\\"
-
-HEADERS += \
- imagecompare.h \
- tst_imagecompare.h
diff --git a/tests/system/auto/imagecompare.cpp b/tests/system/auto/imagecompare.cpp
deleted file mode 100644
index a290d4b..0000000
--- a/tests/system/auto/imagecompare.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "imagecompare.h"
-
-ImageCompare::ImageCompare(QObject *parent) : QObject(parent){
-}
-
-bool ImageCompare::ComparePixels(QImage actual, QImage expected, int tolerance, QString filename){
-
- bool result = true;
- bool compareAlpha, compareRed, compareGreen, compareBlue;
- int diffPixelCount = 0;
- QImage diffImage(300, 300, QImage::Format_ARGB32);
- diffImage.fill(Qt::white);
-
- for(int y = 0; y < 300; y++){
- for(int x = 0; x < 300; x++){
-
- // Pixel difference is set initially to false.
- bool diff = false;
-
- // Gets the color of the pixel in the given position.
- QRgb pixelActual = actual.pixel(x,y);
- QRgb pixelExpected = expected.pixel(x,y);
-
- // Compares separately the alpha, red, green and blue components of an ARGB value within the specified tolerance.
- compareAlpha = (abs(qAlpha(pixelActual) - qAlpha(pixelExpected)) <= tolerance);
- compareRed = (abs(qRed(pixelActual) - qRed(pixelExpected)) <= tolerance);
- compareGreen = (abs(qGreen(pixelActual) - qGreen(pixelExpected)) <= tolerance);
- compareBlue = (abs(qBlue(pixelActual) - qBlue(pixelExpected)) <= tolerance);
-
- // Result value holds the overall boolean status are the compared images the same or different.
- result &= (compareAlpha && compareRed && compareGreen && compareBlue);
-
- // When the compared pixels differ, diff value is set to true and the pixel position is marked to an additional image file.
- diff = !(compareAlpha && compareRed && compareGreen && compareBlue);
- if (diff == true){
- diffImage.setPixel(x, y, qRgba(255, 0, 0, 255));
- ++diffPixelCount;
- }
- }
- }
-
- if(result == false){
- qDebug() << "The percentage difference in" << filename << ":" << diffPixelCount << "/" << 300*300 << "=" << 100.0*diffPixelCount/(300*300);
- QDir wd = QDir().dirName();
- wd.mkdir("diffImages");
- diffImage.save("diffImages/" + filename);
- }
-
- return result;
-}
-
-bool ImageCompare::CompareSizes(QImage actual, QImage expected){
- bool sizesMatch = true;
- if (actual.width() == expected.width() && actual.height() == expected.height()){
- sizesMatch = true;
- }
- else sizesMatch = false;
-
- return sizesMatch;
-}
diff --git a/tests/system/auto/imagecompare.h b/tests/system/auto/imagecompare.h
deleted file mode 100644
index 6c8f693..0000000
--- a/tests/system/auto/imagecompare.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef IMAGECOMPARE_H
-#define IMAGECOMPARE_H
-
-#include <QObject>
-#include <QtCore/QCoreApplication>
-#include <QtCore/QDir>
-#include <QtGui/QImage>
-#include <math.h>
-#include <QDebug>
-
-class ImageCompare : public QObject
-{
- Q_OBJECT
-
-public:
- explicit ImageCompare(QObject *parent = 0);
- bool ComparePixels(QImage actual, QImage expected, int tolerance = 0, QString filename = "difference.png");
- bool CompareSizes(QImage actual, QImage expected);
-
-signals:
-
-public slots:
-
-};
-
-#endif // IMAGECOMPARE_H
diff --git a/tests/system/auto/main.cpp b/tests/system/auto/main.cpp
deleted file mode 100644
index 731e1ff..0000000
--- a/tests/system/auto/main.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore/QCoreApplication>
-#include "tst_imagecompare.h"
-
-int main(int argc, char *argv[]){
-
- QCoreApplication a(argc, argv);
-
- tst_imagecompare test;
-
- // Tolerance for pixel ARGB component comparison can be set using command line argument -t with tolerance integer value
- // E.g. [program name] -t [tolerance]
- int tolerance = 0;
- for(int i = 0; i < argc; i++){
- if (strcmp(argv[i], "-t") == 0){
- tolerance = atoi(argv[i+1]);
-
- // Tolerance arguments are removed from the argument list so the list can be sent to QTestLib
- for(i; i < argc; i++){
- argv[i] = argv[i+2];
- }
- argc -= 2;
- break;
- }
- }
- test.setDiffTolerance(tolerance);
-
- // To be enabled/uncommented if test result output is needed in XML format
- //QStringList arguments;
- //arguments << " " << "-o" << "results.xml" << "-xml";
- //QTest::qExec(&test, arguments);
-
- QTest::qExec(&test, argc, argv);
-
- return 0;
-}
diff --git a/tests/system/auto/tst_imagecompare.cpp b/tests/system/auto/tst_imagecompare.cpp
deleted file mode 100644
index fdaeab2..0000000
--- a/tests/system/auto/tst_imagecompare.cpp
+++ /dev/null
@@ -1,2121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore/QString>
-#include <QtCore/QDir>
-#include <QtCore/QProcess>
-#include <QStringList>
-#include <QtGui/QImage>
-#include <QDebug>
-#include "imagecompare.h"
-#include "tst_imagecompare.h"
-
-QDir expectedDir("../images");
-QDir actualDir("./output");
-int diffTolerance = 0;
-
-void tst_imagecompare::setDiffTolerance(int tolerance){
- diffTolerance = tolerance;
-}
-
-void tst_imagecompare::initTestCase(){
- QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
- QString qtDir = env.value("QTDIR");
- QStringList dumperpath;
- dumperpath << "../../../tools/pngdumper/pngdumper.qml";
-
- // Verifies that QTDIR environment variable is set
- QCOMPARE(qtDir == "", false);
-
- // Verifies does the expected images folder exist
- QCOMPARE(expectedDir.exists(), true);
-
- QProcess *myProcess = new QProcess();
- myProcess->start(qtDir + "/bin/qmlscene", dumperpath);
- myProcess->waitForFinished(300000);
-
- // Verifies does the output folder exist
- QCOMPARE(actualDir.exists(), true);
-
- // Verifies that the output folder includes dumped png images
- QStringList filters;
- filters << "*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
- QCOMPARE(list.size() == 0, false);
-}
-
-void tst_imagecompare::blend_varMode(){
- QStringList filters;
- filters << "Blend_mode*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::brightnessContrast_varBrightness(){
- QStringList filters;
- filters << "BrightnessContrast_brightness*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::brightnessContrast_varContrast(){
- QStringList filters;
- filters << "BrightnessContrast_contrast*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::colorize_varHue(){
- QStringList filters;
- filters << "Colorize_hue*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::colorize_varSaturation(){
- QStringList filters;
- filters << "Colorize_saturation*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::colorize_varLightness(){
- QStringList filters;
- filters << "Colorize_lightness*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::colorOverlay_varColor(){
- QStringList filters;
- filters << "ColorOverlay_color*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::conicalGradient_varAngle(){
- QStringList filters;
- filters << "ConicalGradient_angle*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::conicalGradient_varHorizontalOffset(){
- QStringList filters;
- filters << "ConicalGradient_horizontalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::conicalGradient_varVerticalOffset(){
- QStringList filters;
- filters << "ConicalGradient_verticalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::conicalGradient_varGradient(){
- QStringList filters;
- filters << "ConicalGradient_gradient*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::conicalGradient_varMaskSource(){
- QStringList filters;
- filters << "ConicalGradient_maskSource*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::desaturate_varDesaturation(){
- QStringList filters;
- filters << "Desaturate_desaturation*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::displace_varDisplacement(){
- QStringList filters;
- filters << "Displace_displacement*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::dropShadow_varRadius(){
- QStringList filters;
- filters << "DropShadow_radius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::dropShadow_varColor(){
- QStringList filters;
- filters << "DropShadow_color*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::dropShadow_varHorizontalOffset(){
- QStringList filters;
- filters << "DropShadow_horizontalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::dropShadow_varVerticalOffset(){
- QStringList filters;
- filters << "DropShadow_verticalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::dropShadow_varSpread(){
- QStringList filters;
- filters << "DropShadow_spread*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::dropShadow_varFast(){
- QStringList filters;
- filters << "DropShadow_fast*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::glow_varRadius(){
- QStringList filters;
- filters << "Glow_radius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::glow_varColor(){
- QStringList filters;
- filters << "Glow_color*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::glow_varSpread(){
- QStringList filters;
- filters << "Glow_spread*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::glow_varFast(){
- QStringList filters;
- filters << "Glow_fast*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::fastBlur_varBlur(){
- QStringList filters;
- filters << "FastBlur_blur*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::fastBlur_varTransparentBorder(){
- QStringList filters;
- filters << "FastBlur_transparentBorder*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::gammaAdjust_varGamma(){
- QStringList filters;
- filters << "GammaAdjust_gamma*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::gaussianBlur_varRadius(){
- QStringList filters;
- filters << "GaussianBlur_radius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::gaussianBlur_varDeviation(){
- QStringList filters;
- filters << "GaussianBlur_deviation*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::gaussianBlur_varTransparentBorder(){
- QStringList filters;
- filters << "GaussianBlur_transparentBorder*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::hueSaturation_varHue(){
- QStringList filters;
- filters << "HueSaturation_hue*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::hueSaturation_varSaturation(){
- QStringList filters;
- filters << "HueSaturation_saturation*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::hueSaturation_varLightness(){
- QStringList filters;
- filters << "HueSaturation_lightness*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::innerShadow_varRadius(){
- QStringList filters;
- filters << "InnerShadow_radius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::innerShadow_varHorizontalOffset(){
- QStringList filters;
- filters << "InnerShadow_horizontalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::innerShadow_varVerticalOffset(){
- QStringList filters;
- filters << "InnerShadow_verticalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::innerShadow_varSpread(){
- QStringList filters;
- filters << "InnerShadow_spread*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::innerShadow_varFast(){
- QStringList filters;
- filters << "InnerShadow_fast*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::innerShadow_varColor(){
- QStringList filters;
- filters << "InnerShadow_color*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::linearGradient_varGradient(){
- QStringList filters;
- filters << "LinearGradient_gradient*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::linearGradient_varStart(){
- QStringList filters;
- filters << "LinearGradient_start*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::linearGradient_varEnd(){
- QStringList filters;
- filters << "LinearGradient_end*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::linearGradient_varMaskSource(){
- QStringList filters;
- filters << "LinearGradient_maskSource*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::opacityMask_varMaskSource(){
- QStringList filters;
- filters << "OpacityMask_maskSource*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::radialGradient_varHorizontalOffset(){
- QStringList filters;
- filters << "RadialGradient_horizontalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::radialGradient_varVerticalOffset(){
- QStringList filters;
- filters << "RadialGradient_verticalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::radialGradient_varHorizontalRadius(){
- QStringList filters;
- filters << "RadialGradient_horizontalRadius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::radialGradient_varVerticalRadius(){
- QStringList filters;
- filters << "RadialGradient_verticalRadius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::radialGradient_varGradient(){
- QStringList filters;
- filters << "RadialGradient_gradient*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::radialGradient_varAngle(){
- QStringList filters;
- filters << "RadialGradient_angle*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::radialGradient_varMaskSource(){
- QStringList filters;
- filters << "RadialGradient_maskSource*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::rectangularGlow_varGlowRadius(){
- QStringList filters;
- filters << "RectangularGlow_glowRadius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::rectangularGlow_varSpread(){
- QStringList filters;
- filters << "RectangularGlow_spread*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::rectangularGlow_varColor(){
- QStringList filters;
- filters << "RectangularGlow_color*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::rectangularGlow_varCornerRadius(){
- QStringList filters;
- filters << "RectangularGlow_cornerRadius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::recursiveBlur_varLoops(){
- QStringList filters;
- filters << "RecursiveBlur_loops*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::recursiveBlur_varRadius(){
- QStringList filters;
- filters << "RecursiveBlur_radius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::recursiveBlur_varTransparentBorder(){
- QStringList filters;
- filters << "RecursiveBlur_transparentBorder*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::thresholdMask_varSpread(){
- QStringList filters;
- filters << "ThresholdMask_spread*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::thresholdMask_varThreshold(){
- QStringList filters;
- filters << "ThresholdMask_threshold*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::radialBlur_varAngle(){
- QStringList filters;
- filters << "RadialBlur_angle*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::radialBlur_varHorizontalOffset(){
- QStringList filters;
- filters << "RadialBlur_horizontalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::radialBlur_varVerticalOffset(){
- QStringList filters;
- filters << "RadialBlur_verticalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::directionalBlur_varAngle(){
- QStringList filters;
- filters << "DirectionalBlur_angle*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::directionalBlur_varLength(){
- QStringList filters;
- filters << "DirectionalBlur_length*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::zoomBlur_varHorizontalOffset(){
- QStringList filters;
- filters << "ZoomBlur_horizontalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::zoomBlur_varVerticalOffset(){
- QStringList filters;
- filters << "ZoomBlur_verticalOffset*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::zoomBlur_varLength(){
- QStringList filters;
- filters << "ZoomBlur_length*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::levelAdjust_varMinimumInput(){
- QStringList filters;
- filters << "LevelAdjust_minimumInput*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::levelAdjust_varMaximumInput(){
- QStringList filters;
- filters << "LevelAdjust_maximumInput*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::levelAdjust_varMinimumOutput(){
- QStringList filters;
- filters << "LevelAdjust_minimumOutput*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::levelAdjust_varMaximumOutput(){
- QStringList filters;
- filters << "LevelAdjust_maximumOutput*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-
-void tst_imagecompare::maskedBlur_varRadius(){
- QStringList filters;
- filters << "MaskedBlur_radius*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::maskedBlur_varFast(){
- QStringList filters;
- filters << "MaskedBlur_fast*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
-void tst_imagecompare::maskedBlur_varTransparentBorder(){
- QStringList filters;
- filters << "MaskedBlur_transparentBorder*.png";
- actualDir.setNameFilters(filters);
- QStringList list = actualDir.entryList();
-
- for (int i = 0; i < list.size(); ++i){
- QString filename = list.at(i).toLocal8Bit().constData();
- qDebug() << "Testing shader image " + filename;
- QString actualFile = actualDir.absolutePath() + "/" + filename;
- QString expectedFile = expectedDir.absolutePath() + "/" + filename;
-
- QImage actual(actualFile);
- QImage expected(expectedFile);
-
- // Verifies that pngdumper generated image is not a null size image
- QCOMPARE((actual.width() != 0 || actual.height() != 0), true);
-
- ImageCompare compare;
-
- // Verifies that actual and expected images have the same size
- QCOMPARE(compare.CompareSizes(actual, expected), true);
-
- // Verifies that actual and expected images are pixel-wise the same
- QCOMPARE(compare.ComparePixels(actual, expected, diffTolerance, filename), true);
- }
-}
diff --git a/tests/system/auto/tst_imagecompare.h b/tests/system/auto/tst_imagecompare.h
deleted file mode 100644
index 7e8cdf2..0000000
--- a/tests/system/auto/tst_imagecompare.h
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef TST_IMAGECOMPARE_H
-#define TST_IMAGECOMPARE_H
-
-#include <QtTest/QtTest>
-
-class tst_imagecompare : public QObject
-{
- Q_OBJECT
-
-public:
- void setDiffTolerance(int tolerance);
-
-private Q_SLOTS:
- void initTestCase();
- void blend_varMode();
- void brightnessContrast_varBrightness();
- void brightnessContrast_varContrast();
- void colorize_varHue();
- void colorize_varSaturation();
- void colorize_varLightness();
- void colorOverlay_varColor();
- void conicalGradient_varAngle();
- void conicalGradient_varHorizontalOffset();
- void conicalGradient_varVerticalOffset();
- void conicalGradient_varGradient();
- void conicalGradient_varMaskSource();
- void desaturate_varDesaturation();
- void displace_varDisplacement();
- void dropShadow_varRadius();
- void dropShadow_varColor();
- void dropShadow_varHorizontalOffset();
- void dropShadow_varVerticalOffset();
- void dropShadow_varSpread();
- void dropShadow_varFast();
- void glow_varRadius();
- void glow_varColor();
- void glow_varSpread();
- void glow_varFast();
- void fastBlur_varBlur();
- void fastBlur_varTransparentBorder();
- void gammaAdjust_varGamma();
- void gaussianBlur_varRadius();
- void gaussianBlur_varDeviation();
- void gaussianBlur_varTransparentBorder();
- void hueSaturation_varHue();
- void hueSaturation_varSaturation();
- void hueSaturation_varLightness();
- void innerShadow_varRadius();
- void innerShadow_varHorizontalOffset();
- void innerShadow_varVerticalOffset();
- void innerShadow_varSpread();
- void innerShadow_varFast();
- void innerShadow_varColor();
- void linearGradient_varGradient();
- void linearGradient_varStart();
- void linearGradient_varEnd();
- void linearGradient_varMaskSource();
- void opacityMask_varMaskSource();
- void radialGradient_varHorizontalOffset();
- void radialGradient_varVerticalOffset();
- void radialGradient_varHorizontalRadius();
- void radialGradient_varVerticalRadius();
- void radialGradient_varGradient();
- void radialGradient_varAngle();
- void radialGradient_varMaskSource();
- void rectangularGlow_varGlowRadius();
- void rectangularGlow_varSpread();
- void rectangularGlow_varColor();
- void rectangularGlow_varCornerRadius();
- void recursiveBlur_varLoops();
- void recursiveBlur_varRadius();
- void recursiveBlur_varTransparentBorder();
- void thresholdMask_varSpread();
- void thresholdMask_varThreshold();
- void radialBlur_varAngle();
- void radialBlur_varHorizontalOffset();
- void radialBlur_varVerticalOffset();
- void directionalBlur_varAngle();
- void directionalBlur_varLength();
- void zoomBlur_varHorizontalOffset();
- void zoomBlur_varVerticalOffset();
- void zoomBlur_varLength();
- void levelAdjust_varMinimumInput();
- void levelAdjust_varMaximumInput();
- void levelAdjust_varMinimumOutput();
- void levelAdjust_varMaximumOutput();
- void maskedBlur_varRadius();
- void maskedBlur_varFast();
- void maskedBlur_varTransparentBorder();
-};
-
-#endif // TST_IMAGECOMPARE_H
diff --git a/tests/tests.pro b/tests/tests.pro
deleted file mode 100644
index 2b527af..0000000
--- a/tests/tests.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += manual auto
diff --git a/tools/pngdumper/ItemModel1.qml b/tools/pngdumper/ItemModel1.qml
deleted file mode 100644
index 23b38e5..0000000
--- a/tools/pngdumper/ItemModel1.qml
+++ /dev/null
@@ -1,307 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
-
-VisualItemModel {
- Blend {
- width: size
- height: size
- source: bug
- foregroundSource: butterfly
- mode: "normal"
- property string __name: "Blend"
- property variant __properties: ["mode"]
- property string __varyingProperty: "mode"
- property variant __values: ["normal", "addition","average", "color", "colorBurn","colorDodge", "darken", "darkerColor", "difference", "divide",
- "exclusion", "hardlight", "hue", "lighten", "lighterColor", "lightness", "negation", "multiply", "saturation", "screen", "subtract", "softLight"]
- }
-
- BrightnessContrast {
- width: size
- height: size
- source: bug
- property string __name: "BrightnessContrast"
- property variant __properties: ["brightness", "contrast"]
- property string __varyingProperty: "brightness"
- property variant __values: [-0.25, 0.0, 0.5]
- }
- BrightnessContrast {
- width: size
- height: size
- source: bug
- property string __name: "BrightnessContrast"
- property variant __properties: ["brightness", "contrast"]
- property string __varyingProperty: "contrast"
- property variant __values: [-0.5, 0.0, 0.5]
- }
-
- Colorize {
- width: size
- height: size
- source: bug
- property string __name: "Colorize"
- property variant __properties: ["hue", "saturation", "lightness"]
- property string __varyingProperty: "hue"
- property variant __values: [0.2, 0.5, 0.8]
- }
- Colorize {
- width: size
- height: size
- source: bug
- property string __name: "Colorize"
- property variant __properties: ["hue", "saturation", "lightness"]
- property string __varyingProperty: "saturation"
- property variant __values: [0.0, 0.5, 1.0]
- }
- Colorize {
- width: size
- height: size
- source: bug
- property string __name: "Colorize"
- property variant __properties: ["hue", "saturation", "lightness"]
- property string __varyingProperty: "lightness"
- property variant __values: [-0.75, 0.0, 0.75]
- }
-
- ColorOverlay {
- width: size
- height: size
- source: bug
- property string __name: "ColorOverlay"
- property variant __properties: ["color"]
- property string __varyingProperty: "color"
- property variant __values: ["#80ff0000", "#8000ff00", "#800000ff"]
- }
-
- ConicalGradient {
- function init() { checkerboard = true }
-
- width: size
- height: size
- property string __name: "ConicalGradient"
- property variant __properties: ["angle", "horizontalOffset", "verticalOffset", "gradient"]
- property string __varyingProperty: "angle"
- property variant __values: [0, 45, 185]
- }
- ConicalGradient {
- width: size
- height: size
- property string __name: "ConicalGradient"
- property variant __properties: ["angle", "horizontalOffset", "verticalOffset", "gradient"]
- property string __varyingProperty: "horizontalOffset"
- property variant __values: [-50, 0, 50]
- }
- ConicalGradient {
- width: size
- height: size
- property string __name: "ConicalGradient"
- property variant __properties: ["angle", "horizontalOffset", "verticalOffset", "gradient"]
- property string __varyingProperty: "verticalOffset"
- property variant __values: [-50, 0, 50]
- }
- ConicalGradient {
- width: size
- height: size
- property string __name: "ConicalGradient"
- property variant __properties: ["angle", "horizontalOffset", "verticalOffset", "gradient"]
- property string __varyingProperty: "gradient"
- property variant __values: [firstGradient, secondGradient, thirdGradient]
- }
- ConicalGradient {
- width: size
- height: size
- property string __name: "ConicalGradient"
- property variant __properties: ["angle", "horizontalOffset", "verticalOffset", "gradient", "source"]
- property string __varyingProperty: "source"
- property variant __values: [undefined, butterfly]
-
- function uninit() { checkerboard = false }
- }
-
- Desaturate {
- width: size
- height: size
- source: butterfly
- property string __name: "Desaturate"
- property variant __properties: ["desaturation"]
- property string __varyingProperty: "desaturation"
- property variant __values: ["0.0", "0.5", "1.0"]
- }
-
- Displace {
- width: size
- height: size
- source: bug
- displacementSource: ShaderEffectSource {sourceItem: displacementMapSource; visible: false }
- property string __name: "Displace"
- property variant __properties: ["displacement"]
- property string __varyingProperty: "displacement"
- property variant __values: ["-0.2", "0.0", "0.2"]
- }
-
- DropShadow {
- function init() { butterfly.visible = true }
-
- width: size
- height: size
- source: butterfly
- horizontalOffset: 0
- verticalOffset: 20
- samples: 16
- property string __name: "DropShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "radius"
- property variant __values: [0, 6, 12]
- }
- DropShadow {
- function init() { checkerboard = true }
- width: size
- height: size
- source: butterfly
- horizontalOffset: 0
- verticalOffset: 20
- radius: 8
- samples: 16
- property string __name: "DropShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "color"
- property variant __values: ["#000000", "#0000ff", "#aa000000"]
-
- function uninit() { checkerboard = false }
- }
- DropShadow {
- width: size
- height: size
- source: butterfly
- //verticalOffset: 3
- radius: 4
- samples: 16
- property string __name: "DropShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "horizontalOffset"
- property variant __values: ["-20", "0", "20"]
- }
- DropShadow {
- width: size
- height: size
- source: butterfly
- //horizontalOffset: 3
- radius: 4
- samples: 16
- property string __name: "DropShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "verticalOffset"
- property variant __values: ["-20", "0", "20"]
- }
- DropShadow {
- width: size
- height: size
- source: butterfly
- //horizontalOffset: 3
- verticalOffset: 20
- radius: 8
- samples: 16
- property string __name: "DropShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "spread"
- property variant __values: ["0.0", "0.5", "1.0"]
- }
- DropShadow {
- width: size
- height: size
- source: butterfly
- //horizontalOffset: 3
- verticalOffset: 20
- radius: 16
- samples: 24
- property string __name: "DropShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread", "fast"]
- property string __varyingProperty: "fast"
- property variant __values: [false, true]
- }
-
- Glow {
- function init() { background = "black" }
-
- width: size
- height: size
- source: butterfly
- samples: 16
- property string __name: "Glow"
- property variant __properties: ["radius", "samples", "color", "spread"]
- property string __varyingProperty: "radius"
- property variant __values: [0, 6, 12]
- }
- Glow {
- width: size
- height: size
- source: butterfly
- radius: 8
- spread: 0.5
- samples: 16
- property string __name: "Glow"
- property variant __properties: ["radius", "samples", "color", "spread"]
- property string __varyingProperty: "color"
- property variant __values: ["#ffffff", "#00ff00", "#aa00ff00"]
- }
- Glow {
- width: size
- height: size
- source: butterfly
- radius: 8
- samples: 16
- property string __name: "Glow"
- property variant __properties: ["radius", "samples", "color", "spread"]
- property string __varyingProperty: "spread"
- property variant __values: ["0.0", "0.5", "1.0"]
- }
- Glow {
- width: size
- height: size
- source: butterfly
- radius: 16
- samples: 24
- spread: 0.3
- property string __name: "Glow"
- property variant __properties: ["radius", "samples", "color", "spread", "fast"]
- property string __varyingProperty: "fast"
- property variant __values: [false, true]
-
- function uninit() { butterfly.visible = false }
- }
-
-
- Item {
- id: theEnd
- width: size
- height: size
- function init() { Qt.quit() }
- }
-}
diff --git a/tools/pngdumper/ItemModel2.qml b/tools/pngdumper/ItemModel2.qml
deleted file mode 100644
index abbe2d7..0000000
--- a/tools/pngdumper/ItemModel2.qml
+++ /dev/null
@@ -1,385 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
-
-VisualItemModel {
-
- FastBlur {
- function init() { checkerboard = true }
- width: size
- height: size
- source: bug
- radius: 64
- property string __name: "FastBlur"
- property variant __properties: ["radius", "transparentBorder"]
- property string __varyingProperty: "transparentBorder"
- property variant __values: [false, true]
- function uninit() { checkerboard = false }
- }
-
- FastBlur {
- width: size
- height: size
- source: bug
- radius: 0
- property string __name: "FastBlur"
- property variant __properties: ["radius"]
- property string __varyingProperty: "radius"
- property variant __values: ["0.0", "32", "64"]
- }
-
- GammaAdjust {
- width: size
- height: size
- source: bug
- property string __name: "GammaAdjust"
- property variant __properties: ["gamma"]
- property string __varyingProperty: "gamma"
- property variant __values: ["0.5", "1.0", "2.0"]
- }
-
- GaussianBlur {
- width: size
- height: size
- source: bug
- samples: 16
- deviation: 3
- property string __name: "GaussianBlur"
- property variant __properties: ["radius", "samples", "deviation"]
- property string __varyingProperty: "radius"
- property variant __values: [0, 4, 8]
- }
- GaussianBlur {
- width: size
- height: size
- source: bug
- samples: 16
- radius: 8
- property string __name: "GaussianBlur"
- property variant __properties: ["radius", "samples", "deviation"]
- property string __varyingProperty: "deviation"
- property variant __values: [1, 2, 4]
- }
- GaussianBlur {
- function init() { checkerboard = true }
- width: size
- height: size
- source: bug
- samples: 16
- radius: 8
- property string __name: "GaussianBlur"
- property variant __properties: ["radius", "samples", "deviation", "transparentBorder"]
- property string __varyingProperty: "transparentBorder"
- property variant __values: [false, true]
- function uninit() { checkerboard = false }
- }
-
- HueSaturation {
- width: size
- height: size
- source: bug
- property string __name: "HueSaturation"
- property variant __properties: ["hue", "saturation", "lightness"]
- property string __varyingProperty: "hue"
- property variant __values: ["-0.3", "0.0", "0.3"]
- }
- HueSaturation {
- width: size
- height: size
- source: bug
- property string __name: "HueSaturation"
- property variant __properties: ["hue", "saturation", "lightness"]
- property string __varyingProperty: "saturation"
- property variant __values: ["-0.8", "0.0", "1.0"]
- }
- HueSaturation {
- width: size
- height: size
- source: bug
- property string __name: "HueSaturation"
- property variant __properties: ["hue", "saturation", "lightness"]
- property string __varyingProperty: "lightness"
- property variant __values: ["-0.5", "0.0", "0.5"]
- }
-
- InnerShadow {
- function init() {
- background = "white"
- }
- width: size
- height: size
- source: butterfly
- horizontalOffset: 0
- verticalOffset: 0
- samples: 24
- property string __name: "InnerShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "radius"
- property variant __values: [0, 6, 12]
- }
- InnerShadow {
- width: size
- height: size
- source: butterfly
- horizontalOffset: 0
- verticalOffset: 0
- radius: 16
- samples: 24
- property string __name: "InnerShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "horizontalOffset"
- property variant __values: [-20, 0, 20]
- }
- InnerShadow {
- width: size
- height: size
- source: butterfly
- horizontalOffset: 0
- verticalOffset: 0
- radius: 16
- samples: 24
- property string __name: "InnerShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "verticalOffset"
- property variant __values: [-20, 0, 20]
- }
- InnerShadow {
- width: size
- height: size
- source: butterfly
- horizontalOffset: 0
- verticalOffset: 0
- radius: 16
- samples: 24
- property string __name: "InnerShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "spread"
- property variant __values: ["0.0", "0.3", "0.5"]
- }
- InnerShadow {
- width: size
- height: size
- source: butterfly
- horizontalOffset: 0
- verticalOffset: 0
- radius: 16
- spread: 0.2
- samples: 24
- property string __name: "InnerShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread", "fast"]
- property string __varyingProperty: "fast"
- property variant __values: [false, true]
- }
- InnerShadow {
- function init() { checkerboard = true }
- width: size
- height: size
- source: butterfly
- horizontalOffset: 0
- verticalOffset: 0
- radius: 16
- spread: 0.2
- samples: 24
- property string __name: "InnerShadow"
- property variant __properties: ["radius", "samples", "color", "horizontalOffset", "verticalOffset", "spread"]
- property string __varyingProperty: "color"
- property variant __values: ["#000000", "#ffffff", "#ff0000"]
- }
-
- LinearGradient {
- function init() { checkerboard = true }
-
- width: size
- height: size
- start: Qt.point(0,0)
- end: Qt.point(width, height)
- property string __name: "LinearGradient"
- property variant __properties: ["start", "end", "gradient"]
- property string __varyingProperty: "gradient"
- property variant __values: [firstGradient, secondGradient, thirdGradient]
- }
- LinearGradient {
- width: size
- height: size
- end: Qt.point(width, height)
- property string __name: "LinearGradient"
- property variant __properties: ["start", "end", "gradient"]
- property string __varyingProperty: "start"
- property variant __values: [Qt.point(0,0), Qt.point(width / 2, height / 2), Qt.point(width, 0)]
- }
- LinearGradient {
- width: size
- height: size
- start: Qt.point(0,0)
- property string __name: "LinearGradient"
- property variant __properties: ["start", "end", "gradient"]
- property string __varyingProperty: "end"
- property variant __values: [Qt.point(width, height), Qt.point(width / 2, height / 2), Qt.point(width, 0)]
- }
- LinearGradient {
- width: size
- height: size
- start: Qt.point(0,0)
- end: Qt.point(width, height)
- property string __name: "LinearGradient"
- property variant __properties: ["start", "end", "gradient", "source"]
- property string __varyingProperty: "source"
- property variant __values: [undefined, butterfly]
- }
-
- OpacityMask {
- width: size
- height: size
- source: bug
- property string __name: "OpacityMask"
- property variant __properties: ["maskSource"]
- property string __varyingProperty: "maskSource"
- property variant __values: [butterfly]
- }
-
- RadialGradient {
- width: size
- height: size
- property string __name: "RadialGradient"
- property variant __properties: ["horizontalOffset", "verticalOffset", "horizontalRadius", "verticalRadius", "angle", "gradient"]
- property string __varyingProperty: "horizontalOffset"
- property variant __values: [-width / 2, 0, width / 2]
- }
- RadialGradient {
- width: size
- height: size
- property string __name: "RadialGradient"
- property variant __properties: ["horizontalOffset", "verticalOffset", "horizontalRadius", "verticalRadius", "angle", "gradient"]
- property string __varyingProperty: "verticalOffset"
- property variant __values: [-height / 2, 0, height / 2]
- }
- RadialGradient {
- width: size
- height: size
- property string __name: "RadialGradient"
- property variant __properties: ["horizontalOffset", "verticalOffset", "horizontalRadius", "verticalRadius", "angle", "gradient"]
- property string __varyingProperty: "horizontalRadius"
- property variant __values: [width, width / 3]
- }
- RadialGradient {
- width: size
- height: size
- property string __name: "RadialGradient"
- property variant __properties: ["horizontalOffset", "verticalOffset", "horizontalRadius", "verticalRadius", "angle", "gradient"]
- property string __varyingProperty: "verticalRadius"
- property variant __values: [height, height / 3]
- }
- RadialGradient {
- width: size
- height: size
- property string __name: "RadialGradient"
- property variant __properties: ["horizontalOffset", "verticalOffset", "horizontalRadius", "verticalRadius", "angle", "gradient"]
- property string __varyingProperty: "gradient"
- property variant __values: [firstGradient, secondGradient, thirdGradient]
- }
- RadialGradient {
- width: size
- height: size
- horizontalRadius: width / 3
- property string __name: "RadialGradient"
- property variant __properties: ["horizontalOffset", "verticalOffset", "horizontalRadius", "verticalRadius", "angle", "gradient"]
- property string __varyingProperty: "angle"
- property variant __values: [0, 45, 90]
- }
- RadialGradient {
- width: size
- height: size
- property string __name: "RadialGradient"
- property variant __properties: ["horizontalOffset", "verticalOffset", "horizontalRadius", "verticalRadius", "angle", "gradient", "source"]
- property string __varyingProperty: "source"
- property variant __values: [undefined, butterfly]
-
- function uninit() { checkerboard = false }
- }
-
- RectangularGlow {
- function init() {
- background = "black"
- rect.visible = true
- }
- width: rect.width
- height: rect.height
- x: rect.x
- property string __name: "RectangularGlow"
- property variant __properties: ["glowRadius", "spread", "color", "cornerRadius"]
- property string __varyingProperty: "glowRadius"
- property variant __values: [10, 20, 40]
- cornerRadius: 25
- }
- RectangularGlow {
- width: rect.width
- height: rect.height
- x: rect.x
- property string __name: "RectangularGlow"
- property variant __properties: ["glowRadius", "spread", "color", "cornerRadius"]
- property string __varyingProperty: "spread"
- property variant __values: ["0.0", "0.5", "1.0"]
- cornerRadius: 25
- glowRadius: 20
- }
- RectangularGlow {
- width: rect.width
- height: rect.height
- x: rect.x
- property string __name: "RectangularGlow"
- property variant __properties: ["glowRadius", "spread", "color", "cornerRadius"]
- property string __varyingProperty: "color"
- property variant __values: ["#ffffff", "#55ff55", "#5555ff"]
- cornerRadius: 25
- glowRadius: 20
- }
- RectangularGlow {
- width: rect.width
- height: rect.height
- x: rect.x
- property string __name: "RectangularGlow"
- property variant __properties: ["glowRadius", "spread", "color", "cornerRadius"]
- property string __varyingProperty: "cornerRadius"
- property variant __values: [0, 25, 50]
- glowRadius: 20
-
- function uninit() {
- background = "white"
- rect.visible = false
- }
- }
-
- Item {
- id: theEnd
- width: size
- height: size
- function init() { Qt.quit() }
- }
-}
diff --git a/tools/pngdumper/ItemModel3.qml b/tools/pngdumper/ItemModel3.qml
deleted file mode 100644
index 56c005e..0000000
--- a/tools/pngdumper/ItemModel3.qml
+++ /dev/null
@@ -1,243 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
-
-VisualItemModel {
-
- RecursiveBlur {
- function init() {
- timer.interval = 2000
- checkerboard = true
- }
-
- width: size
- height: size
- source: bug
- radius: 7.5
- property string __name: "RecursiveBlur"
- property variant __properties: ["loops", "radius"]
- property string __varyingProperty: "loops"
- property variant __values: [4, 20, 70]
- }
- RecursiveBlur {
- width: size
- height: size
- source: bug
- loops: 20
- property string __name: "RecursiveBlur"
- property variant __properties: ["loops", "radius"]
- property string __varyingProperty: "radius"
- property variant __values: [2.5, 4.5, 7.5]
- }
- RecursiveBlur {
- width: size
- height: size
- source: bug
- loops: 20
- radius: 7.5
- property string __name: "RecursiveBlur"
- property variant __properties: ["loops", "radius", "transparentBorder"]
- property string __varyingProperty: "transparentBorder"
- property variant __values: [false, true]
-
- function uninit() {
- timer.interval = timerInterval
- checkerboard = false
- }
- }
-
- ThresholdMask {
- width: size
- height: size
- source: bug
- maskSource: fog
- threshold: 0.4
- property string __name: "ThresholdMask"
- property variant __properties: ["spread", "threshold"]
- property string __varyingProperty: "spread"
- property variant __values: ["0.0", "0.2", "0.8"]
- function init() { checkerboard = true }
- }
- ThresholdMask {
- width: size
- height: size
- source: bug
- maskSource: fog
- spread: 0.2
- property string __name: "ThresholdMask"
- property variant __properties: ["spread", "threshold"]
- property string __varyingProperty: "threshold"
- property variant __values: ["0.0", "0.5", "0.7"]
- function uninit() { checkerboard = false }
- }
-
- RadialBlur {
- width: size
- height: size
- source: butterfly
- samples: 24
- property string __name: "RadialBlur"
- property variant __properties: ["samples", "angle", "horizontalOffset", "verticalOffset"]
- property string __varyingProperty: "angle"
- property variant __values: ["0.0", "15.0", "30.0"]
- function uninit() { checkerboard = false }
- }
- RadialBlur {
- width: size
- height: size
- source: butterfly
- samples: 24
- angle: 20
- property string __name: "RadialBlur"
- property variant __properties: ["samples", "angle", "horizontalOffset", "verticalOffset"]
- property string __varyingProperty: "horizontalOffset"
- property variant __values: ["75.0", "0.0", "-75.0"]
- function uninit() { checkerboard = false }
- }
- RadialBlur {
- width: size
- height: size
- source: butterfly
- samples: 24
- angle: 20
- property string __name: "RadialBlur"
- property variant __properties: ["samples", "angle", "horizontalOffset", "verticalOffset"]
- property string __varyingProperty: "verticalOffset"
- property variant __values: ["75.0", "0.0", "-75.0"]
- function uninit() { checkerboard = false }
- }
-
- DirectionalBlur {
- width: size
- height: size
- source: butterfly
- samples: 24
- length: 32
- property string __name: "DirectionalBlur"
- property variant __properties: ["samples", "angle", "length"]
- property string __varyingProperty: "angle"
- property variant __values: ["0.0", "45.0", "90.0"]
- function uninit() { checkerboard = false }
- }
- DirectionalBlur {
- width: size
- height: size
- source: butterfly
- samples: 24
- property string __name: "DirectionalBlur"
- property variant __properties: ["samples", "angle", "length"]
- property string __varyingProperty: "length"
- property variant __values: ["0.0", "32.0", "48.0"]
- function uninit() { checkerboard = false }
- }
-
- ZoomBlur {
- width: size
- height: size
- source: butterfly
- samples: 24
- length: 32
- property string __name: "ZoomBlur"
- property variant __properties: ["samples", "length", "horizontalOffset", "verticalOffset"]
- property string __varyingProperty: "horizontalOffset"
- property variant __values: ["100.0", "0.0", "-100.0"]
- function uninit() { checkerboard = false }
- }
- ZoomBlur {
- width: size
- height: size
- source: butterfly
- samples: 24
- length: 32
- property string __name: "ZoomBlur"
- property variant __properties: ["samples", "length", "horizontalOffset", "verticalOffset"]
- property string __varyingProperty: "verticalOffset"
- property variant __values: ["100.0", "0.0", "-100.0"]
- function uninit() { checkerboard = false }
- }
- ZoomBlur {
- width: size
- height: size
- source: butterfly
- samples: 24
- property string __name: "ZoomBlur"
- property variant __properties: ["samples", "length", "horizontalOffset", "verticalOffset"]
- property string __varyingProperty: "length"
- property variant __values: ["0.0", "32.0", "48.0"]
- function uninit() { checkerboard = false }
- }
-
- LevelAdjust {
- width: size
- height: size
- source: butterfly
- property string __name: "LevelAdjust"
- property variant __properties: ["minimumInput", "maximumInput", "minimumOutput", "maximumOutput", "gamma"]
- property string __varyingProperty: "minimumInput"
- property variant __values: ["#00000000", "#00000040", "#00000070"]
- }
-
- LevelAdjust {
- width: size
- height: size
- source: butterfly
- property string __name: "LevelAdjust"
- property variant __properties: ["minimumInput", "maximumInput", "minimumOutput", "maximumOutput", "gamma"]
- property string __varyingProperty: "maximumInput"
- property variant __values: ["#FFFFFFFF", "#FFFFFF80", "#FFFFFF30"]
- }
-
- LevelAdjust {
- width: size
- height: size
- source: butterfly
- property string __name: "LevelAdjust"
- property variant __properties: ["minimumInput", "maximumInput", "minimumOutput", "maximumOutput", "gamma"]
- property string __varyingProperty: "minimumOutput"
- property variant __values: ["#00000000", "#00000070", "#000000A0"]
- }
-
- LevelAdjust {
- width: size
- height: size
- source: butterfly
- property string __name: "LevelAdjust"
- property variant __properties: ["minimumInput", "maximumInput", "minimumOutput", "maximumOutput", "gamma"]
- property string __varyingProperty: "maximumOutput"
- property variant __values: ["#FFFFFFFF", "#FFFFFF80", "#FFFFFF30"]
- }
-
- Item {
- id: theEnd
- width: size
- height: size
- function init() { Qt.quit() }
- }
-}
diff --git a/tools/pngdumper/ItemModel4.qml b/tools/pngdumper/ItemModel4.qml
deleted file mode 100644
index f33fe14..0000000
--- a/tools/pngdumper/ItemModel4.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
-
-VisualItemModel {
-
- MaskedBlur {
- width: size
- height: size
- source: butterfly
- maskSource: blurMask
- samples: 24
- property string __name: "MaskedBlur"
- property variant __properties: ["radius", "samples", "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
- samples: 24
- property string __name: "MaskedBlur"
- property variant __properties: ["radius", "samples", "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
- samples: 24
- fast: true
- property string __name: "MaskedBlur"
- property variant __properties: ["radius", "samples", "transparentBorder", "fast"]
- property string __varyingProperty: "transparentBorder"
- property variant __values: [false, true]
- function uninit() { checkerboard = false }
- }
-
- Item {
- id: theEnd
- width: size
- height: size
- function init() { Qt.quit() }
- }
-}
diff --git a/tools/pngdumper/pngdumper.cpp b/tools/pngdumper/pngdumper.cpp
deleted file mode 100644
index 8beb925..0000000
--- a/tools/pngdumper/pngdumper.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "pngdumper.h"
-
-#include <QtQml/qqml.h>
-#include <QtQuick/QQuickWindow>
-
-ItemCapturer::ItemCapturer(QQuickItem *parent):
- QQuickItem(parent)
-{
-}
-
-ItemCapturer::~ItemCapturer()
-{
-}
-
-void ItemCapturer::grabItem(QQuickItem *item, QString filename)
-{
- QQuickWindow *w = window();
- QImage img = w->grabWindow();
- while (img.width() * img.height() == 0)
- img = w->grabWindow();
- QQuickItem *rootItem = w->contentItem();
- QRectF rectf = rootItem->mapRectFromItem(item, QRectF(0, 0, item->width(), item->height()));
- QDir pwd = QDir().dirName();
- pwd.mkdir("output");
- img = img.copy(rectf.toRect());
- img.save("output/" + filename);
- emit imageSaved();
-}
-
-void ItemCapturer::document(QString s)
-{
- printf(s.toLatin1().data());
-}
diff --git a/tools/pngdumper/pngdumper.h b/tools/pngdumper/pngdumper.h
deleted file mode 100644
index 54fac1b..0000000
--- a/tools/pngdumper/pngdumper.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef ITEMCAPTURER_H
-#define ITEMCAPTURER_H
-
-#include <QtQuick>
-
-class ItemCapturer : public QQuickItem
-{
- Q_OBJECT
- Q_DISABLE_COPY(ItemCapturer)
-
-public:
- ItemCapturer(QQuickItem *parent = 0);
- ~ItemCapturer();
-
- Q_INVOKABLE void grabItem(QQuickItem *item, QString filename);
- Q_INVOKABLE void document(QString s);
-
-signals:
- void imageSaved();
-
-};
-
-QML_DECLARE_TYPE(ItemCapturer)
-
-#endif // ITEMCAPTURER_H
-
diff --git a/tools/pngdumper/pngdumper.pro b/tools/pngdumper/pngdumper.pro
deleted file mode 100644
index d29e50f..0000000
--- a/tools/pngdumper/pngdumper.pro
+++ /dev/null
@@ -1,41 +0,0 @@
-TEMPLATE = lib
-TARGET = pngdumper
-QT += core quick
-CONFIG += plugin
-
-TARGET = $$qtLibraryTarget($$TARGET)
-uri = org.qtproject.pngdumper
-
-# Input
-SOURCES += \
- pngdumper_plugin.cpp \
- pngdumper.cpp
-
-HEADERS += \
- pngdumper_plugin.h \
- pngdumper.h
-
-OTHER_FILES = qmldir \
- pngdumper.qml \
- ItemModel.qml
-
-!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
- cpqmldir.files = qmldir
- cpqmldir.path = $$OUT_PWD
- COPIES += cpqmldir
-}
-
-qmldir.files = qmldir
-unix {
- maemo5 | !isEmpty(MEEGO_VERSION_MAJOR) {
- installPath = /usr/lib/qt4/imports/$$replace(uri, \\., /)
- } else {
- installPath = $$[QT_INSTALL_IMPORTS]/$$replace(uri, \\., /)
- }
- qmldir.path = $$installPath
- target.path = $$installPath
- INSTALLS += target qmldir
-}
-
-
-
diff --git a/tools/pngdumper/pngdumper.qml b/tools/pngdumper/pngdumper.qml
deleted file mode 100644
index fa2faaf..0000000
--- a/tools/pngdumper/pngdumper.qml
+++ /dev/null
@@ -1,240 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import org.qtproject.pngdumper 1.12
-
-Rectangle {
- id: main
- width: 300
- height: width
- property real size: width
- property real timerInterval: 1
- property color background: "white"
- 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) }
- GradientStop { position: 0.167; color: Qt.rgba(1, 1, 0, 1) }
- GradientStop { position: 0.333; color: Qt.rgba(0, 1, 0, 1) }
- GradientStop { position: 0.500; color: Qt.rgba(0, 1, 1, 1) }
- GradientStop { position: 0.667; color: Qt.rgba(0, 0, 1, 1) }
- GradientStop { position: 0.833; color: Qt.rgba(1, 0, 1, 1) }
- GradientStop { position: 1.000; color: Qt.rgba(1, 0, 0, 1) }
- }
- Gradient {
- id: secondGradient
- GradientStop { position: 0.0; color: "#F0F0F0" }
- GradientStop { position: 0.5; color: "#000000" }
- GradientStop { position: 1.0; color: "#F0F0F0" }
- }
- Gradient {
- id: thirdGradient
- GradientStop { position: 0.0; color: "#00000000" }
- GradientStop { position: 1.0; color: "#FF000000" }
- }
-
- ItemModel {
- id: itemModel
- }
-
- Item {
- id: container
- width: size
- height: size
- clip: true
-
- Image {
- source: '../../tests/manual/testbed/images/checker.png'
- smooth: true
- anchors.fill: parent
- fillMode: Image.Tile
- visible: main.checkerboard
- }
-
- ListView {
- id: list
- width: size
- height: size
- model: itemModel
- highlightMoveDuration: 1
- spacing: size
- anchors.centerIn: parent
- cacheBuffer: size
- }
- }
-
- // Sources
- Image {
- id: bug
- source: "../../tests/manual/testbed/images/bug.jpg"
- smooth: true
- width: size
- height: width
- fillMode: Image.PreserveAspectFit
- visible: false
- }
- ShaderEffectSource {
- id: butterfly
- smooth: true
- width: size
- height: width
- visible: false
- sourceItem:
- Image {
- //id: butterfly
- source: "../../tests/manual/testbed/images/butterfly.png"
- smooth: true
- width: size
- height: width
- fillMode: Image.PreserveAspectFit
- visible: false
- }
- }
- Image {
- id: fog
- source: "../../tests/manual/testbed/images/fog.png"
- smooth: true
- width: size
- height: width
- fillMode: Image.PreserveAspectFit
- visible: false
- }
- Rectangle {
- id: rect
- width: size / 2
- height: size / 2
- anchors.centerIn: container
- color: "#dde4ff"
- visible: false
- }
- Rectangle {
- id: displacementMapSource
- visible: false
- color: Qt.rgba(0.5, 0.5, 1.0, 1.0)
- smooth: true
- anchors.fill: bug
- Image {
- id: di
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- sourceSize: Qt.size(128, 128)
- source: "../../tests/manual/testbed/images/glass_normal.png"
- smooth: true
- }
- }
-
- ItemCapturer {
- id: capturer
- }
-
- Timer {
- interval: 1000
- running: true
- onTriggered: {
- // Ugly workaround for listview not updating itself
- list.contentX = 1
- eval("list.currentItem."+list.currentItem.__varyingProperty+"=list.currentItem.__values[0]");
- list.contentX = 0
- if (list.currentItem.init != undefined) list.currentItem.init()
- timer.running = true
- }
- }
-
-
- property int i: 0
- Connections {
- target: capturer
- onImageSaved: {
- if (i >= list.currentItem.__values.length - 1) {
- var filename = list.currentItem.__name + "_" + list.currentItem.__varyingProperty + (i + 1) + ".png"
- filename = filename.replace(/\"/g,"")
- capturer.document("\\table\n")
- capturer.document("\\header\n")
- capturer.document("\\o Output examples with different " + list.currentItem.__varyingProperty + " values\n")
- capturer.document("\\o\n\\o\n\\row\n")
- var ii = 0
- for(ii = 0; ii < list.currentItem.__values.length; ii++) {
- filename = list.currentItem.__name + "_" + list.currentItem.__varyingProperty + (ii + 1) + ".png"
- filename = filename.replace(/\"/g,"")
- //filename = filename.toLowerCase();
- capturer.document(" \\o \\image " + filename + "\n")
- }
- capturer.document("\\row\n")
- for(ii = 0; ii < list.currentItem.__values.length; ii++) {
- capturer.document(" \\o \\bold { " + list.currentItem.__varyingProperty + ": " + list.currentItem.__values[ii] + " }\n")
- }
- for (var p = 0; p < list.currentItem.__properties.length; p++) {
- if (list.currentItem.__properties[p] == list.currentItem.__varyingProperty) continue;
-
- capturer.document("\\row\n")
-
- for(ii = 0; ii < list.currentItem.__values.length; ii++) {
- capturer.document(" \\o \\l " + list.currentItem.__properties[p] + ": " + eval("list.currentItem."+list.currentItem.__properties[p]) + "\n")
- }
- }
- capturer.document("\\endtable\n")
-
- if (list.currentIndex < list.count-1) {
- i = 0
- if (list.currentItem.uninit != undefined) list.currentItem.uninit()
- list.currentIndex++
- list.positionViewAtIndex(list.currentIndex, ListView.Center)
- if (list.currentItem.init != undefined) list.currentItem.init()
- } else Qt.quit()
- } else i++
-
- eval("list.currentItem."+list.currentItem.__varyingProperty+"=list.currentItem.__values[i]");
- timer.running = true
- }
- }
-
- Timer {
- id: timer
- interval: timerInterval
- running: false
- onTriggered: {
- var filename = list.currentItem.__name + "_" + list.currentItem.__varyingProperty + (i + 1) + ".png"
- filename = filename.replace(/\"/g,"")
- capturer.grabItem(container, filename)
- }
- }
-}
diff --git a/tools/pngdumper/pngdumper.sh b/tools/pngdumper/pngdumper.sh
deleted file mode 100755
index 851a1b2..0000000
--- a/tools/pngdumper/pngdumper.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-#############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is the build configuration utility of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:GPL-EXCEPT$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 3 as published by the Free Software
-## Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-## included in the packaging of this file. Please review the following
-## information to ensure the GNU General Public License requirements will
-## be met: https://www.gnu.org/licenses/gpl-3.0.html.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-# This script must be run from its current folder.
-# Example of usage: ./pngdumper.sh -platform xcb
-
-rm ItemModel.qml
-cp ItemModel1.qml ItemModel.qml
-qmlscene pngdumper.qml $1 $2
-
-rm ItemModel.qml
-cp ItemModel2.qml ItemModel.qml
-qmlscene pngdumper.qml $1 $2
-
-rm ItemModel.qml
-cp ItemModel3.qml ItemModel.qml
-qmlscene pngdumper.qml $1 $2
-
-rm ItemModel.qml
-cp ItemModel4.qml ItemModel.qml
-qmlscene pngdumper.qml $1 $2
-
-rm ItemModel.qml
diff --git a/tools/pngdumper/pngdumper_plugin.cpp b/tools/pngdumper/pngdumper_plugin.cpp
deleted file mode 100644
index f6974b7..0000000
--- a/tools/pngdumper/pngdumper_plugin.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "pngdumper_plugin.h"
-#include "pngdumper.h"
-
-#include <QtQml/qqml.h>
-
-void ItemcapturerPlugin::registerTypes(const char *uri)
-{
- qmlRegisterType<ItemCapturer>(uri, 1, 0, "ItemCapturer");
-
- // The minor version used to be the current Qt 5 minor. For compatibility it is the last
- // Qt 5 release.
- qmlRegisterModule(uri, 1, 15);
-}
-
diff --git a/tools/pngdumper/pngdumper_plugin.h b/tools/pngdumper/pngdumper_plugin.h
deleted file mode 100644
index 139cc80..0000000
--- a/tools/pngdumper/pngdumper_plugin.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Graphical Effects module.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef ITEMCAPTURER_PLUGIN_H
-#define ITEMCAPTURER_PLUGIN_H
-
-#include <QtQml/QQmlExtensionPlugin>
-
-class ItemcapturerPlugin : public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- void registerTypes(const char *uri);
-};
-
-#endif // ITEMCAPTURER_PLUGIN_H
-
diff --git a/tools/pngdumper/qmldir b/tools/pngdumper/qmldir
deleted file mode 100644
index a4519f1..0000000
--- a/tools/pngdumper/qmldir
+++ /dev/null
@@ -1,2 +0,0 @@
-plugin pngdumper
-