aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.qmake.conf2
-rw-r--r--src/effects/Blend.qml4
-rw-r--r--src/effects/BrightnessContrast.qml6
-rw-r--r--src/effects/ColorOverlay.qml6
-rw-r--r--src/effects/Colorize.qml6
-rw-r--r--src/effects/ConicalGradient.qml4
-rw-r--r--src/effects/Desaturate.qml6
-rw-r--r--src/effects/DirectionalBlur.qml4
-rw-r--r--src/effects/Displace.qml4
-rw-r--r--src/effects/DropShadow.qml4
-rw-r--r--src/effects/FastBlur.qml4
-rw-r--r--src/effects/GammaAdjust.qml6
-rw-r--r--src/effects/GaussianBlur.qml6
-rw-r--r--src/effects/Glow.qml4
-rw-r--r--src/effects/HueSaturation.qml6
-rw-r--r--src/effects/InnerShadow.qml4
-rw-r--r--src/effects/LevelAdjust.qml10
-rw-r--r--src/effects/LinearGradient.qml4
-rw-r--r--src/effects/MaskedBlur.qml4
-rw-r--r--src/effects/OpacityMask.qml4
-rw-r--r--src/effects/RadialBlur.qml4
-rw-r--r--src/effects/RadialGradient.qml4
-rw-r--r--src/effects/RectangularGlow.qml4
-rw-r--r--src/effects/RecursiveBlur.qml4
-rw-r--r--src/effects/ThresholdMask.qml4
-rw-r--r--src/effects/ZoomBlur.qml4
-rw-r--r--src/effects/doc/snippets/Blend-example.qml4
-rw-r--r--src/effects/doc/snippets/BrightnessContrast-example.qml4
-rw-r--r--src/effects/doc/snippets/ColorOverlay-example.qml4
-rw-r--r--src/effects/doc/snippets/Colorize-example.qml4
-rw-r--r--src/effects/doc/snippets/ConicalGradient-example.qml4
-rw-r--r--src/effects/doc/snippets/Desaturate-example.qml4
-rw-r--r--src/effects/doc/snippets/DirectionalBlur-example.qml4
-rw-r--r--src/effects/doc/snippets/Displace-example.qml4
-rw-r--r--src/effects/doc/snippets/DropShadow-example.qml4
-rw-r--r--src/effects/doc/snippets/DropShadow-transparentBorder-example.qml4
-rw-r--r--src/effects/doc/snippets/FastBlur-example.qml4
-rw-r--r--src/effects/doc/snippets/GammaAdjust-example.qml4
-rw-r--r--src/effects/doc/snippets/GaussianBlur-example.qml4
-rw-r--r--src/effects/doc/snippets/Glow-example.qml4
-rw-r--r--src/effects/doc/snippets/Glow-transparentBorder-example.qml4
-rw-r--r--src/effects/doc/snippets/HueSaturation-example.qml4
-rw-r--r--src/effects/doc/snippets/InnerShadow-example.qml4
-rw-r--r--src/effects/doc/snippets/LevelAdjust-example.qml4
-rw-r--r--src/effects/doc/snippets/LinearGradient-example.qml4
-rw-r--r--src/effects/doc/snippets/MaskedBlur-example.qml4
-rw-r--r--src/effects/doc/snippets/OpacityMask-example.qml4
-rw-r--r--src/effects/doc/snippets/RadialBlur-example.qml4
-rw-r--r--src/effects/doc/snippets/RadialGradient-example.qml4
-rw-r--r--src/effects/doc/snippets/RectangularGlow-example.qml4
-rw-r--r--src/effects/doc/snippets/RecursiveBlur-example.qml4
-rw-r--r--src/effects/doc/snippets/ThresholdMask-example.qml4
-rw-r--r--src/effects/doc/snippets/ZoomBlur-example.qml4
-rw-r--r--src/effects/doc/src/qtgraphicaleffects.qdoc6
-rw-r--r--src/effects/plugin.cpp14
-rw-r--r--src/effects/private/DropShadowBase.qml6
-rw-r--r--src/effects/private/FastGlow.qml4
-rw-r--r--src/effects/private/FastInnerShadow.qml4
-rw-r--r--src/effects/private/FastMaskedBlur.qml4
-rw-r--r--src/effects/private/GaussianDirectionalBlur.qml4
-rw-r--r--src/effects/private/GaussianGlow.qml4
-rw-r--r--src/effects/private/GaussianInnerShadow.qml4
-rw-r--r--src/effects/private/GaussianMaskedBlur.qml4
-rw-r--r--src/effects/private/plugin.cpp12
-rw-r--r--tests/manual/SourceProxyTest.qml4
-rw-r--r--tests/manual/manual.pro2
-rw-r--r--tests/manual/smooth/CellContainer.qml9
-rw-r--r--tests/manual/smooth/SourceImage.qml8
-rw-r--r--tests/manual/smooth/main.cpp53
-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.pngbin0 -> 641 bytes
-rw-r--r--tests/manual/testSourceProxy.qml4
-rw-r--r--tests/manual/testbed/BGColorPicker.qml2
-rw-r--r--tests/manual/testbed/CheckBox.qml2
-rw-r--r--tests/manual/testbed/ColorPicker.qml2
-rw-r--r--tests/manual/testbed/ColorSlider.qml2
-rw-r--r--tests/manual/testbed/Control.qml2
-rw-r--r--tests/manual/testbed/ImageSource.qml2
-rw-r--r--tests/manual/testbed/Label.qml2
-rw-r--r--tests/manual/testbed/LevelSlider.qml2
-rw-r--r--tests/manual/testbed/PositionPicker.qml2
-rw-r--r--tests/manual/testbed/ProgressBar.qml2
-rw-r--r--tests/manual/testbed/RadioButton.qml2
-rw-r--r--tests/manual/testbed/RadioButtonColumn.qml2
-rw-r--r--tests/manual/testbed/RgbaColorPicker.qml2
-rw-r--r--tests/manual/testbed/Slider.qml2
-rw-r--r--tests/manual/testbed/TestBedModel.qml2
-rw-r--r--tests/manual/testbed/TestBlend.qml4
-rw-r--r--tests/manual/testbed/TestBrightnessContrast.qml4
-rw-r--r--tests/manual/testbed/TestCaseTemplate.qml2
-rw-r--r--tests/manual/testbed/TestColorOverlay.qml4
-rw-r--r--tests/manual/testbed/TestColorize.qml4
-rw-r--r--tests/manual/testbed/TestConicalGradient.qml4
-rw-r--r--tests/manual/testbed/TestDesaturate.qml4
-rw-r--r--tests/manual/testbed/TestDirectionalBlur.qml4
-rw-r--r--tests/manual/testbed/TestDisplace.qml4
-rw-r--r--tests/manual/testbed/TestDropShadow.qml4
-rw-r--r--tests/manual/testbed/TestFastBlur.qml4
-rw-r--r--tests/manual/testbed/TestGammaAdjust.qml4
-rw-r--r--tests/manual/testbed/TestGaussianBlur.qml4
-rw-r--r--tests/manual/testbed/TestGlow.qml4
-rw-r--r--tests/manual/testbed/TestHueSaturation.qml4
-rw-r--r--tests/manual/testbed/TestInnerShadow.qml4
-rw-r--r--tests/manual/testbed/TestLevelAdjust.qml4
-rw-r--r--tests/manual/testbed/TestLinearGradient.qml4
-rw-r--r--tests/manual/testbed/TestMaskedBlur.qml4
-rw-r--r--tests/manual/testbed/TestOpacityMask.qml4
-rw-r--r--tests/manual/testbed/TestRadialBlur.qml4
-rw-r--r--tests/manual/testbed/TestRadialGradient.qml4
-rw-r--r--tests/manual/testbed/TestRectangularGlow.qml4
-rw-r--r--tests/manual/testbed/TestRecursiveBlur.qml4
-rw-r--r--tests/manual/testbed/TestThresholdMask.qml4
-rw-r--r--tests/manual/testbed/TestZoomBlur.qml4
-rw-r--r--tests/manual/testbed/testBed.qml4
-rw-r--r--tools/pngdumper/pngdumper.qml4
-rw-r--r--tools/pngdumper/pngdumper_plugin.cpp3
118 files changed, 696 insertions, 219 deletions
diff --git a/.qmake.conf b/.qmake.conf
index d920a9c..097d8b9 100644
--- a/.qmake.conf
+++ b/.qmake.conf
@@ -1,3 +1,3 @@
load(qt_build_config)
-MODULE_VERSION = 5.11.3
+MODULE_VERSION = 5.12.0
diff --git a/src/effects/Blend.qml b/src/effects/Blend.qml
index f607f4e..e5f4816 100644
--- a/src/effects/Blend.qml
+++ b/src/effects/Blend.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.8
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype Blend
diff --git a/src/effects/BrightnessContrast.qml b/src/effects/BrightnessContrast.qml
index 04da2f3..a95872c 100644
--- a/src/effects/BrightnessContrast.qml
+++ b/src/effects/BrightnessContrast.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype BrightnessContrast
@@ -167,6 +167,8 @@ Item {
SourceProxy {
id: sourceProxy
input: rootItem.source
+ interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth)
+ ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation
}
ShaderEffectSource {
diff --git a/src/effects/ColorOverlay.qml b/src/effects/ColorOverlay.qml
index afefa0b..b2cdaa0 100644
--- a/src/effects/ColorOverlay.qml
+++ b/src/effects/ColorOverlay.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype ColorOverlay
@@ -123,6 +123,8 @@ Item {
SourceProxy {
id: sourceProxy
input: rootItem.source
+ interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth)
+ ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation
}
ShaderEffectSource {
diff --git a/src/effects/Colorize.qml b/src/effects/Colorize.qml
index fd40da2..501111f 100644
--- a/src/effects/Colorize.qml
+++ b/src/effects/Colorize.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype Colorize
@@ -210,6 +210,8 @@ Item {
SourceProxy {
id: sourceProxy
input: rootItem.source
+ interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth)
+ ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation
}
ShaderEffectSource {
diff --git a/src/effects/ConicalGradient.qml b/src/effects/ConicalGradient.qml
index ca65151..c8d68b1 100644
--- a/src/effects/ConicalGradient.qml
+++ b/src/effects/ConicalGradient.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype ConicalGradient
diff --git a/src/effects/Desaturate.qml b/src/effects/Desaturate.qml
index 13f3e85..3347e2f 100644
--- a/src/effects/Desaturate.qml
+++ b/src/effects/Desaturate.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype Desaturate
@@ -122,6 +122,8 @@ Item {
SourceProxy {
id: sourceProxy
input: rootItem.source
+ interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth)
+ ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation
}
ShaderEffectSource {
diff --git a/src/effects/DirectionalBlur.qml b/src/effects/DirectionalBlur.qml
index 7525dbc..42ea078 100644
--- a/src/effects/DirectionalBlur.qml
+++ b/src/effects/DirectionalBlur.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.8
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype DirectionalBlur
diff --git a/src/effects/Displace.qml b/src/effects/Displace.qml
index 0ef5d96..3400222 100644
--- a/src/effects/Displace.qml
+++ b/src/effects/Displace.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype Displace
diff --git a/src/effects/DropShadow.qml b/src/effects/DropShadow.qml
index 0668a80..0f30e5a 100644
--- a/src/effects/DropShadow.qml
+++ b/src/effects/DropShadow.qml
@@ -38,8 +38,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype DropShadow
diff --git a/src/effects/FastBlur.qml b/src/effects/FastBlur.qml
index 9c4c88b..1d8a547 100644
--- a/src/effects/FastBlur.qml
+++ b/src/effects/FastBlur.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype FastBlur
diff --git a/src/effects/GammaAdjust.qml b/src/effects/GammaAdjust.qml
index e146d06..3b35ab5 100644
--- a/src/effects/GammaAdjust.qml
+++ b/src/effects/GammaAdjust.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype GammaAdjust
@@ -159,6 +159,8 @@ luminance = pow(original_luminance, 1.0 / gamma); // The luminance is assumed to
SourceProxy {
id: sourceProxy
input: rootItem.source
+ interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth)
+ ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation
}
ShaderEffectSource {
diff --git a/src/effects/GaussianBlur.qml b/src/effects/GaussianBlur.qml
index 579682a..7619550 100644
--- a/src/effects/GaussianBlur.qml
+++ b/src/effects/GaussianBlur.qml
@@ -38,9 +38,9 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtQuick.Window 2.1
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtQuick.Window 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype GaussianBlur
diff --git a/src/effects/Glow.qml b/src/effects/Glow.qml
index f8d7bc0..ad00571 100644
--- a/src/effects/Glow.qml
+++ b/src/effects/Glow.qml
@@ -38,8 +38,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype Glow
diff --git a/src/effects/HueSaturation.qml b/src/effects/HueSaturation.qml
index 866a8a2..526f474 100644
--- a/src/effects/HueSaturation.qml
+++ b/src/effects/HueSaturation.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype HueSaturation
@@ -199,6 +199,8 @@ Item {
SourceProxy {
id: sourceProxy
input: rootItem.source
+ interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth)
+ ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation
}
ShaderEffectSource {
diff --git a/src/effects/InnerShadow.qml b/src/effects/InnerShadow.qml
index f8f009f..7a388e3 100644
--- a/src/effects/InnerShadow.qml
+++ b/src/effects/InnerShadow.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype InnerShadow
diff --git a/src/effects/LevelAdjust.qml b/src/effects/LevelAdjust.qml
index a13354d..004c798 100644
--- a/src/effects/LevelAdjust.qml
+++ b/src/effects/LevelAdjust.qml
@@ -37,8 +37,8 @@
**
*****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype LevelAdjust
@@ -84,7 +84,9 @@ Item {
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
+ \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.
@@ -406,6 +408,8 @@ Item {
SourceProxy {
id: sourceProxy
input: rootItem.source
+ interpolation: rootItem.smooth || (rootItem.layer.enabled && rootItem.layer.smooth)
+ ? SourceProxy.NearestInterpolation : SourceProxy.LinearInterpolation
}
ShaderEffectSource {
diff --git a/src/effects/LinearGradient.qml b/src/effects/LinearGradient.qml
index e268f8e..1f73a21 100644
--- a/src/effects/LinearGradient.qml
+++ b/src/effects/LinearGradient.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype LinearGradient
diff --git a/src/effects/MaskedBlur.qml b/src/effects/MaskedBlur.qml
index d3b87bd..d777b0a 100644
--- a/src/effects/MaskedBlur.qml
+++ b/src/effects/MaskedBlur.qml
@@ -38,8 +38,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype MaskedBlur
diff --git a/src/effects/OpacityMask.qml b/src/effects/OpacityMask.qml
index 3935141..7dffb6d 100644
--- a/src/effects/OpacityMask.qml
+++ b/src/effects/OpacityMask.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype OpacityMask
diff --git a/src/effects/RadialBlur.qml b/src/effects/RadialBlur.qml
index 5530625..71d3b64 100644
--- a/src/effects/RadialBlur.qml
+++ b/src/effects/RadialBlur.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.8
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype RadialBlur
diff --git a/src/effects/RadialGradient.qml b/src/effects/RadialGradient.qml
index 287b26f..ff46aac 100644
--- a/src/effects/RadialGradient.qml
+++ b/src/effects/RadialGradient.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype RadialGradient
diff --git a/src/effects/RectangularGlow.qml b/src/effects/RectangularGlow.qml
index cd6aad0..62862e3 100644
--- a/src/effects/RectangularGlow.qml
+++ b/src/effects/RectangularGlow.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype RectangularGlow
diff --git a/src/effects/RecursiveBlur.qml b/src/effects/RecursiveBlur.qml
index 458dc65..7d93802 100644
--- a/src/effects/RecursiveBlur.qml
+++ b/src/effects/RecursiveBlur.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype RecursiveBlur
diff --git a/src/effects/ThresholdMask.qml b/src/effects/ThresholdMask.qml
index 36e0365..204d8c9 100644
--- a/src/effects/ThresholdMask.qml
+++ b/src/effects/ThresholdMask.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype ThresholdMask
diff --git a/src/effects/ZoomBlur.qml b/src/effects/ZoomBlur.qml
index 32e7be5..66ba710 100644
--- a/src/effects/ZoomBlur.qml
+++ b/src/effects/ZoomBlur.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.8
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
/*!
\qmltype ZoomBlur
diff --git a/src/effects/doc/snippets/Blend-example.qml b/src/effects/doc/snippets/Blend-example.qml
index b09bd43..6abd534 100644
--- a/src/effects/doc/snippets/Blend-example.qml
+++ b/src/effects/doc/snippets/Blend-example.qml
@@ -38,9 +38,9 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
+import QtQuick 2.12
//! [import]
-import QtGraphicalEffects 1.0
+import QtGraphicalEffects 1.12
//! [import]
Item {
diff --git a/src/effects/doc/snippets/BrightnessContrast-example.qml b/src/effects/doc/snippets/BrightnessContrast-example.qml
index 73bc369..c677fe3 100644
--- a/src/effects/doc/snippets/BrightnessContrast-example.qml
+++ b/src/effects/doc/snippets/BrightnessContrast-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/ColorOverlay-example.qml b/src/effects/doc/snippets/ColorOverlay-example.qml
index 7593286..6c7c91e 100644
--- a/src/effects/doc/snippets/ColorOverlay-example.qml
+++ b/src/effects/doc/snippets/ColorOverlay-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/Colorize-example.qml b/src/effects/doc/snippets/Colorize-example.qml
index f96237f..3b01bfc 100644
--- a/src/effects/doc/snippets/Colorize-example.qml
+++ b/src/effects/doc/snippets/Colorize-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/ConicalGradient-example.qml b/src/effects/doc/snippets/ConicalGradient-example.qml
index f89820a..6782fa8 100644
--- a/src/effects/doc/snippets/ConicalGradient-example.qml
+++ b/src/effects/doc/snippets/ConicalGradient-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/Desaturate-example.qml b/src/effects/doc/snippets/Desaturate-example.qml
index c445dce..c397627 100644
--- a/src/effects/doc/snippets/Desaturate-example.qml
+++ b/src/effects/doc/snippets/Desaturate-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/DirectionalBlur-example.qml b/src/effects/doc/snippets/DirectionalBlur-example.qml
index b21c5cd..90e0d29 100644
--- a/src/effects/doc/snippets/DirectionalBlur-example.qml
+++ b/src/effects/doc/snippets/DirectionalBlur-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/Displace-example.qml b/src/effects/doc/snippets/Displace-example.qml
index 1b5ba71..63493cb 100644
--- a/src/effects/doc/snippets/Displace-example.qml
+++ b/src/effects/doc/snippets/Displace-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/DropShadow-example.qml b/src/effects/doc/snippets/DropShadow-example.qml
index 6b7057a..23107eb 100644
--- a/src/effects/doc/snippets/DropShadow-example.qml
+++ b/src/effects/doc/snippets/DropShadow-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml b/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml
index 81dc94b..d3e102e 100644
--- a/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml
+++ b/src/effects/doc/snippets/DropShadow-transparentBorder-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Rectangle {
width: 180
diff --git a/src/effects/doc/snippets/FastBlur-example.qml b/src/effects/doc/snippets/FastBlur-example.qml
index 0cd2bf3..5985051 100644
--- a/src/effects/doc/snippets/FastBlur-example.qml
+++ b/src/effects/doc/snippets/FastBlur-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/GammaAdjust-example.qml b/src/effects/doc/snippets/GammaAdjust-example.qml
index 5b9c7ca..8b5b750 100644
--- a/src/effects/doc/snippets/GammaAdjust-example.qml
+++ b/src/effects/doc/snippets/GammaAdjust-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/GaussianBlur-example.qml b/src/effects/doc/snippets/GaussianBlur-example.qml
index ec87f66..41962b7 100644
--- a/src/effects/doc/snippets/GaussianBlur-example.qml
+++ b/src/effects/doc/snippets/GaussianBlur-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/Glow-example.qml b/src/effects/doc/snippets/Glow-example.qml
index b3ed391..03b2813 100644
--- a/src/effects/doc/snippets/Glow-example.qml
+++ b/src/effects/doc/snippets/Glow-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/Glow-transparentBorder-example.qml b/src/effects/doc/snippets/Glow-transparentBorder-example.qml
index 656e4b3..d66dd15 100644
--- a/src/effects/doc/snippets/Glow-transparentBorder-example.qml
+++ b/src/effects/doc/snippets/Glow-transparentBorder-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Rectangle {
width: 180
diff --git a/src/effects/doc/snippets/HueSaturation-example.qml b/src/effects/doc/snippets/HueSaturation-example.qml
index 57c829f..08610c5 100644
--- a/src/effects/doc/snippets/HueSaturation-example.qml
+++ b/src/effects/doc/snippets/HueSaturation-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/InnerShadow-example.qml b/src/effects/doc/snippets/InnerShadow-example.qml
index be6e468..2238403 100644
--- a/src/effects/doc/snippets/InnerShadow-example.qml
+++ b/src/effects/doc/snippets/InnerShadow-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/LevelAdjust-example.qml b/src/effects/doc/snippets/LevelAdjust-example.qml
index 7ac9fb1..3326b73 100644
--- a/src/effects/doc/snippets/LevelAdjust-example.qml
+++ b/src/effects/doc/snippets/LevelAdjust-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/LinearGradient-example.qml b/src/effects/doc/snippets/LinearGradient-example.qml
index 25c72cb..7fc8a50 100644
--- a/src/effects/doc/snippets/LinearGradient-example.qml
+++ b/src/effects/doc/snippets/LinearGradient-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/MaskedBlur-example.qml b/src/effects/doc/snippets/MaskedBlur-example.qml
index 947428a..eb5939c 100644
--- a/src/effects/doc/snippets/MaskedBlur-example.qml
+++ b/src/effects/doc/snippets/MaskedBlur-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/OpacityMask-example.qml b/src/effects/doc/snippets/OpacityMask-example.qml
index 88f6688..fd8d145 100644
--- a/src/effects/doc/snippets/OpacityMask-example.qml
+++ b/src/effects/doc/snippets/OpacityMask-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/RadialBlur-example.qml b/src/effects/doc/snippets/RadialBlur-example.qml
index 84a6553..4e46f12 100644
--- a/src/effects/doc/snippets/RadialBlur-example.qml
+++ b/src/effects/doc/snippets/RadialBlur-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/RadialGradient-example.qml b/src/effects/doc/snippets/RadialGradient-example.qml
index 306fbe2..757783c 100644
--- a/src/effects/doc/snippets/RadialGradient-example.qml
+++ b/src/effects/doc/snippets/RadialGradient-example.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/RectangularGlow-example.qml b/src/effects/doc/snippets/RectangularGlow-example.qml
index 12aeccd..3e4d1ff 100644
--- a/src/effects/doc/snippets/RectangularGlow-example.qml
+++ b/src/effects/doc/snippets/RectangularGlow-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/RecursiveBlur-example.qml b/src/effects/doc/snippets/RecursiveBlur-example.qml
index 93ac4d7..e045467 100644
--- a/src/effects/doc/snippets/RecursiveBlur-example.qml
+++ b/src/effects/doc/snippets/RecursiveBlur-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/ThresholdMask-example.qml b/src/effects/doc/snippets/ThresholdMask-example.qml
index fa4765a..23fecab 100644
--- a/src/effects/doc/snippets/ThresholdMask-example.qml
+++ b/src/effects/doc/snippets/ThresholdMask-example.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/snippets/ZoomBlur-example.qml b/src/effects/doc/snippets/ZoomBlur-example.qml
index 81ae161..77d1c78 100644
--- a/src/effects/doc/snippets/ZoomBlur-example.qml
+++ b/src/effects/doc/snippets/ZoomBlur-example.qml
@@ -38,8 +38,8 @@
****************************************************************************/
//! [example]
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
Item {
width: 300
diff --git a/src/effects/doc/src/qtgraphicaleffects.qdoc b/src/effects/doc/src/qtgraphicaleffects.qdoc
index 8a42d60..21476f1 100644
--- a/src/effects/doc/src/qtgraphicaleffects.qdoc
+++ b/src/effects/doc/src/qtgraphicaleffects.qdoc
@@ -26,7 +26,7 @@
****************************************************************************/
/*!
- \qmlmodule QtGraphicalEffects 1.0
+ \qmlmodule QtGraphicalEffects 1.\QtMinorVersion
\title Qt Graphical Effect QML Types
\ingroup qmlmodules
@@ -40,9 +40,11 @@
To use the types in this module, import the module with the following line:
\qml
- import QtGraphicalEffects 1.0
+ 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.\1 for convenience.
*/
/*!
diff --git a/src/effects/plugin.cpp b/src/effects/plugin.cpp
index b30e2ae..7b33636 100644
--- a/src/effects/plugin.cpp
+++ b/src/effects/plugin.cpp
@@ -41,14 +41,6 @@
#include <QtQml/qqml.h>
#include <QtQml/qqmlengine.h>
-static void initResources()
-{
-#ifdef QT_STATIC
- Q_INIT_RESOURCE(qmake_QtGraphicalEffects);
- Q_INIT_RESOURCE(qtgraphicaleffectsshaders);
-#endif
-}
-
QT_BEGIN_NAMESPACE
class QtGraphicalEffectsPlugin : public QQmlExtensionPlugin
@@ -57,11 +49,13 @@ class QtGraphicalEffectsPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public:
- QtGraphicalEffectsPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { initResources(); }
+ QtGraphicalEffectsPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
virtual void registerTypes(const char *uri)
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("QtGraphicalEffects"));
- Q_UNUSED(uri);
+
+ // Auto-increment the import to stay in sync with ALL future QtQuick minor versions from 5.12 onward
+ qmlRegisterModule(uri, 1, QT_VERSION_MINOR);
}
};
diff --git a/src/effects/private/DropShadowBase.qml b/src/effects/private/DropShadowBase.qml
index e6d83df..7e80e47 100644
--- a/src/effects/private/DropShadowBase.qml
+++ b/src/effects/private/DropShadowBase.qml
@@ -37,9 +37,9 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
+import QtGraphicalEffects 1.12
Item {
id: root
diff --git a/src/effects/private/FastGlow.qml b/src/effects/private/FastGlow.qml
index fb2fa42..5c737f1 100644
--- a/src/effects/private/FastGlow.qml
+++ b/src/effects/private/FastGlow.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
Item {
id: rootItem
diff --git a/src/effects/private/FastInnerShadow.qml b/src/effects/private/FastInnerShadow.qml
index be21d8e..bd361ca 100644
--- a/src/effects/private/FastInnerShadow.qml
+++ b/src/effects/private/FastInnerShadow.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
Item {
id: rootItem
diff --git a/src/effects/private/FastMaskedBlur.qml b/src/effects/private/FastMaskedBlur.qml
index ef26704..56800c6 100644
--- a/src/effects/private/FastMaskedBlur.qml
+++ b/src/effects/private/FastMaskedBlur.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
Item {
id: rootItem
diff --git a/src/effects/private/GaussianDirectionalBlur.qml b/src/effects/private/GaussianDirectionalBlur.qml
index af1ca70..4d52b2e 100644
--- a/src/effects/private/GaussianDirectionalBlur.qml
+++ b/src/effects/private/GaussianDirectionalBlur.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.8
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
Item {
id: rootItem
diff --git a/src/effects/private/GaussianGlow.qml b/src/effects/private/GaussianGlow.qml
index d660205..f0d328a 100644
--- a/src/effects/private/GaussianGlow.qml
+++ b/src/effects/private/GaussianGlow.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
Item {
id: rootItem
diff --git a/src/effects/private/GaussianInnerShadow.qml b/src/effects/private/GaussianInnerShadow.qml
index 7207963..a0b39e9 100644
--- a/src/effects/private/GaussianInnerShadow.qml
+++ b/src/effects/private/GaussianInnerShadow.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
Item {
id: rootItem
diff --git a/src/effects/private/GaussianMaskedBlur.qml b/src/effects/private/GaussianMaskedBlur.qml
index 03bf674..8273973 100644
--- a/src/effects/private/GaussianMaskedBlur.qml
+++ b/src/effects/private/GaussianMaskedBlur.qml
@@ -37,8 +37,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects.private 1.0
+import QtQuick 2.12
+import QtGraphicalEffects.private 1.12
Item {
id: rootItem
diff --git a/src/effects/private/plugin.cpp b/src/effects/private/plugin.cpp
index 2e5b17a..5537ba8 100644
--- a/src/effects/private/plugin.cpp
+++ b/src/effects/private/plugin.cpp
@@ -44,13 +44,6 @@
#include "qgfxsourceproxy_p.h"
#include "qgfxshaderbuilder_p.h"
-static void initResources()
-{
-#ifdef QT_STATIC
- Q_INIT_RESOURCE(qmake_QtGraphicalEffects_private);
-#endif
-}
-
QT_BEGIN_NAMESPACE
static QObject *qgfxshaderbuilder_provider(QQmlEngine *, QJSEngine *)
@@ -64,12 +57,15 @@ class QtGraphicalEffectsPrivatePlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public:
- QtGraphicalEffectsPrivatePlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { initResources(); }
+ QtGraphicalEffectsPrivatePlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { }
virtual void registerTypes(const char *uri)
{
Q_ASSERT(QByteArray(uri) == QByteArrayLiteral("QtGraphicalEffects.private"));
qmlRegisterType<QGfxSourceProxy>(uri, 1, 0, "SourceProxy");
qmlRegisterSingletonType<QGfxShaderBuilder>(uri, 1, 0, "ShaderBuilder", qgfxshaderbuilder_provider);
+
+ // Auto-increment the import to stay in sync with ALL future QtQuick minor versions from 5.12 onward
+ qmlRegisterModule(uri, 1, QT_VERSION_MINOR);
}
};
diff --git a/tests/manual/SourceProxyTest.qml b/tests/manual/SourceProxyTest.qml
index b3e3066..311f543 100644
--- a/tests/manual/SourceProxyTest.qml
+++ b/tests/manual/SourceProxyTest.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtGraphicalEffects.private 1.0
-import QtQuick 2.4
+import QtGraphicalEffects.private 1.12
+import QtQuick 2.12
Rectangle {
diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro
index 0e7e6e4..730f489 100644
--- a/tests/manual/manual.pro
+++ b/tests/manual/manual.pro
@@ -1,4 +1,4 @@
TEMPLATE = subdirs
OTHER_FILES = testbed/*.qml
-#SUBDIRS += testbed
+SUBDIRS += smooth
diff --git a/tests/manual/smooth/CellContainer.qml b/tests/manual/smooth/CellContainer.qml
new file mode 100644
index 0000000..60af0f7
--- /dev/null
+++ b/tests/manual/smooth/CellContainer.qml
@@ -0,0 +1,9 @@
+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
new file mode 100644
index 0000000..86cf269
--- /dev/null
+++ b/tests/manual/smooth/SourceImage.qml
@@ -0,0 +1,8 @@
+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
new file mode 100644
index 0000000..aaca093
--- /dev/null
+++ b/tests/manual/smooth/main.cpp
@@ -0,0 +1,53 @@
+/****************************************************************************
+**
+** Copyright (C) 2018 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL3$
+** 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 http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPLv3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or later as published by the Free
+** Software Foundation and appearing in the file LICENSE.GPL included in
+** the packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 2.0 requirements will be
+** met: http://www.gnu.org/licenses/gpl-2.0.html.
+**
+** $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
new file mode 100644
index 0000000..3c458cc
--- /dev/null
+++ b/tests/manual/smooth/main.qml
@@ -0,0 +1,358 @@
+/****************************************************************************
+**
+** 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
new file mode 100644
index 0000000..b2b4653
--- /dev/null
+++ b/tests/manual/smooth/resources.qrc
@@ -0,0 +1,8 @@
+<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
new file mode 100644
index 0000000..5e577f4
--- /dev/null
+++ b/tests/manual/smooth/smooth.pro
@@ -0,0 +1,30 @@
+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
new file mode 100644
index 0000000..81c9ade
--- /dev/null
+++ b/tests/manual/smooth/star.png
Binary files differ
diff --git a/tests/manual/testSourceProxy.qml b/tests/manual/testSourceProxy.qml
index c7f9e54..dcdae6f 100644
--- a/tests/manual/testSourceProxy.qml
+++ b/tests/manual/testSourceProxy.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtGraphicalEffects.private 1.0
-import QtQuick 2.4;
+import QtGraphicalEffects.private 1.12
+import QtQuick 2.12
Item {
id: root
diff --git a/tests/manual/testbed/BGColorPicker.qml b/tests/manual/testbed/BGColorPicker.qml
index 2309182..0b06a8d 100644
--- a/tests/manual/testbed/BGColorPicker.qml
+++ b/tests/manual/testbed/BGColorPicker.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Label {
id: bgColorPicker
diff --git a/tests/manual/testbed/CheckBox.qml b/tests/manual/testbed/CheckBox.qml
index 5311507..2bd3fb6 100644
--- a/tests/manual/testbed/CheckBox.qml
+++ b/tests/manual/testbed/CheckBox.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: checkBox
diff --git a/tests/manual/testbed/ColorPicker.qml b/tests/manual/testbed/ColorPicker.qml
index e1b4ebb..7181192 100644
--- a/tests/manual/testbed/ColorPicker.qml
+++ b/tests/manual/testbed/ColorPicker.qml
@@ -26,7 +26,7 @@
**
*****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: root
diff --git a/tests/manual/testbed/ColorSlider.qml b/tests/manual/testbed/ColorSlider.qml
index 61130fc..bdddac9 100644
--- a/tests/manual/testbed/ColorSlider.qml
+++ b/tests/manual/testbed/ColorSlider.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: colorSlider
diff --git a/tests/manual/testbed/Control.qml b/tests/manual/testbed/Control.qml
index 91a19e6..dcc7257 100644
--- a/tests/manual/testbed/Control.qml
+++ b/tests/manual/testbed/Control.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: control
diff --git a/tests/manual/testbed/ImageSource.qml b/tests/manual/testbed/ImageSource.qml
index 2322100..520eacd 100644
--- a/tests/manual/testbed/ImageSource.qml
+++ b/tests/manual/testbed/ImageSource.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Image {
id: is
diff --git a/tests/manual/testbed/Label.qml b/tests/manual/testbed/Label.qml
index 75c66ae..6a5964c 100644
--- a/tests/manual/testbed/Label.qml
+++ b/tests/manual/testbed/Label.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: label
diff --git a/tests/manual/testbed/LevelSlider.qml b/tests/manual/testbed/LevelSlider.qml
index 8e78c10..f13928c 100644
--- a/tests/manual/testbed/LevelSlider.qml
+++ b/tests/manual/testbed/LevelSlider.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: slider
diff --git a/tests/manual/testbed/PositionPicker.qml b/tests/manual/testbed/PositionPicker.qml
index 5994d14..2b85b36 100644
--- a/tests/manual/testbed/PositionPicker.qml
+++ b/tests/manual/testbed/PositionPicker.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Image {
id: positionPicker
diff --git a/tests/manual/testbed/ProgressBar.qml b/tests/manual/testbed/ProgressBar.qml
index 00f5286..067edfb 100644
--- a/tests/manual/testbed/ProgressBar.qml
+++ b/tests/manual/testbed/ProgressBar.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: slider
diff --git a/tests/manual/testbed/RadioButton.qml b/tests/manual/testbed/RadioButton.qml
index bd148c8..1ab809d 100644
--- a/tests/manual/testbed/RadioButton.qml
+++ b/tests/manual/testbed/RadioButton.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: radioButton
diff --git a/tests/manual/testbed/RadioButtonColumn.qml b/tests/manual/testbed/RadioButtonColumn.qml
index 97d94d7..3a16386 100644
--- a/tests/manual/testbed/RadioButtonColumn.qml
+++ b/tests/manual/testbed/RadioButtonColumn.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: radioButtoncolumn
diff --git a/tests/manual/testbed/RgbaColorPicker.qml b/tests/manual/testbed/RgbaColorPicker.qml
index 749c201..0b48e95 100644
--- a/tests/manual/testbed/RgbaColorPicker.qml
+++ b/tests/manual/testbed/RgbaColorPicker.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: rgbaSlider
diff --git a/tests/manual/testbed/Slider.qml b/tests/manual/testbed/Slider.qml
index 1de643f..a199a7f 100644
--- a/tests/manual/testbed/Slider.qml
+++ b/tests/manual/testbed/Slider.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: slider
diff --git a/tests/manual/testbed/TestBedModel.qml b/tests/manual/testbed/TestBedModel.qml
index 641eeef..c299c39 100644
--- a/tests/manual/testbed/TestBedModel.qml
+++ b/tests/manual/testbed/TestBedModel.qml
@@ -26,7 +26,7 @@
**
*****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
ListModel {
id: testcaseModel
diff --git a/tests/manual/testbed/TestBlend.qml b/tests/manual/testbed/TestBlend.qml
index 86e2bf4..c3852e1 100644
--- a/tests/manual/testbed/TestBlend.qml
+++ b/tests/manual/testbed/TestBlend.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestBrightnessContrast.qml b/tests/manual/testbed/TestBrightnessContrast.qml
index 387fc7c..20ce6cd 100644
--- a/tests/manual/testbed/TestBrightnessContrast.qml
+++ b/tests/manual/testbed/TestBrightnessContrast.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestCaseTemplate.qml b/tests/manual/testbed/TestCaseTemplate.qml
index 93e50de..6d15829 100644
--- a/tests/manual/testbed/TestCaseTemplate.qml
+++ b/tests/manual/testbed/TestCaseTemplate.qml
@@ -26,7 +26,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Item {
id: main
diff --git a/tests/manual/testbed/TestColorOverlay.qml b/tests/manual/testbed/TestColorOverlay.qml
index 6200b1e..112aa35 100644
--- a/tests/manual/testbed/TestColorOverlay.qml
+++ b/tests/manual/testbed/TestColorOverlay.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestColorize.qml b/tests/manual/testbed/TestColorize.qml
index 79d99c6..fed0d15 100644
--- a/tests/manual/testbed/TestColorize.qml
+++ b/tests/manual/testbed/TestColorize.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestConicalGradient.qml b/tests/manual/testbed/TestConicalGradient.qml
index 7c53bd1..8c7b145 100644
--- a/tests/manual/testbed/TestConicalGradient.qml
+++ b/tests/manual/testbed/TestConicalGradient.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestDesaturate.qml b/tests/manual/testbed/TestDesaturate.qml
index ea900b9..465a833 100644
--- a/tests/manual/testbed/TestDesaturate.qml
+++ b/tests/manual/testbed/TestDesaturate.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestDirectionalBlur.qml b/tests/manual/testbed/TestDirectionalBlur.qml
index 3b3ba89..a3455e8 100644
--- a/tests/manual/testbed/TestDirectionalBlur.qml
+++ b/tests/manual/testbed/TestDirectionalBlur.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestDisplace.qml b/tests/manual/testbed/TestDisplace.qml
index 76bff5b..1aca077 100644
--- a/tests/manual/testbed/TestDisplace.qml
+++ b/tests/manual/testbed/TestDisplace.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
diff --git a/tests/manual/testbed/TestDropShadow.qml b/tests/manual/testbed/TestDropShadow.qml
index a74ad4b..93070be 100644
--- a/tests/manual/testbed/TestDropShadow.qml
+++ b/tests/manual/testbed/TestDropShadow.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
diff --git a/tests/manual/testbed/TestFastBlur.qml b/tests/manual/testbed/TestFastBlur.qml
index 459d196..70fb577 100644
--- a/tests/manual/testbed/TestFastBlur.qml
+++ b/tests/manual/testbed/TestFastBlur.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestGammaAdjust.qml b/tests/manual/testbed/TestGammaAdjust.qml
index 400b3fb..9ea307e 100644
--- a/tests/manual/testbed/TestGammaAdjust.qml
+++ b/tests/manual/testbed/TestGammaAdjust.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestGaussianBlur.qml b/tests/manual/testbed/TestGaussianBlur.qml
index 196933d..13ce7fc 100644
--- a/tests/manual/testbed/TestGaussianBlur.qml
+++ b/tests/manual/testbed/TestGaussianBlur.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestGlow.qml b/tests/manual/testbed/TestGlow.qml
index b82c4ef..997a838 100644
--- a/tests/manual/testbed/TestGlow.qml
+++ b/tests/manual/testbed/TestGlow.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
diff --git a/tests/manual/testbed/TestHueSaturation.qml b/tests/manual/testbed/TestHueSaturation.qml
index 3b1b954..4124767 100644
--- a/tests/manual/testbed/TestHueSaturation.qml
+++ b/tests/manual/testbed/TestHueSaturation.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestInnerShadow.qml b/tests/manual/testbed/TestInnerShadow.qml
index 38426ad..d17be5f 100644
--- a/tests/manual/testbed/TestInnerShadow.qml
+++ b/tests/manual/testbed/TestInnerShadow.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
diff --git a/tests/manual/testbed/TestLevelAdjust.qml b/tests/manual/testbed/TestLevelAdjust.qml
index 713a044..7e1b976 100644
--- a/tests/manual/testbed/TestLevelAdjust.qml
+++ b/tests/manual/testbed/TestLevelAdjust.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestLinearGradient.qml b/tests/manual/testbed/TestLinearGradient.qml
index 63cfd3d..500dd5a 100644
--- a/tests/manual/testbed/TestLinearGradient.qml
+++ b/tests/manual/testbed/TestLinearGradient.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestMaskedBlur.qml b/tests/manual/testbed/TestMaskedBlur.qml
index 1d37b24..c8b6b2d 100644
--- a/tests/manual/testbed/TestMaskedBlur.qml
+++ b/tests/manual/testbed/TestMaskedBlur.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestOpacityMask.qml b/tests/manual/testbed/TestOpacityMask.qml
index a844911..12b1b0c 100644
--- a/tests/manual/testbed/TestOpacityMask.qml
+++ b/tests/manual/testbed/TestOpacityMask.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestRadialBlur.qml b/tests/manual/testbed/TestRadialBlur.qml
index 7f80d56..c2e0d95 100644
--- a/tests/manual/testbed/TestRadialBlur.qml
+++ b/tests/manual/testbed/TestRadialBlur.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestRadialGradient.qml b/tests/manual/testbed/TestRadialGradient.qml
index 6ab565d..af17b5f 100644
--- a/tests/manual/testbed/TestRadialGradient.qml
+++ b/tests/manual/testbed/TestRadialGradient.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestRectangularGlow.qml b/tests/manual/testbed/TestRectangularGlow.qml
index 79841bc..fd5a3a0 100644
--- a/tests/manual/testbed/TestRectangularGlow.qml
+++ b/tests/manual/testbed/TestRectangularGlow.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
diff --git a/tests/manual/testbed/TestRecursiveBlur.qml b/tests/manual/testbed/TestRecursiveBlur.qml
index 1b9c77d..5e33ea3 100644
--- a/tests/manual/testbed/TestRecursiveBlur.qml
+++ b/tests/manual/testbed/TestRecursiveBlur.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
diff --git a/tests/manual/testbed/TestThresholdMask.qml b/tests/manual/testbed/TestThresholdMask.qml
index b4fbc73..97bead2 100644
--- a/tests/manual/testbed/TestThresholdMask.qml
+++ b/tests/manual/testbed/TestThresholdMask.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/TestZoomBlur.qml b/tests/manual/testbed/TestZoomBlur.qml
index 4a804d2..3045e15 100644
--- a/tests/manual/testbed/TestZoomBlur.qml
+++ b/tests/manual/testbed/TestZoomBlur.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import QtGraphicalEffects 1.0
+import QtQuick 2.12
+import QtGraphicalEffects 1.12
TestCaseTemplate {
ImageSource {
diff --git a/tests/manual/testbed/testBed.qml b/tests/manual/testbed/testBed.qml
index f42ea4a..b74bd1a 100644
--- a/tests/manual/testbed/testBed.qml
+++ b/tests/manual/testbed/testBed.qml
@@ -26,13 +26,13 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.12
Rectangle {
id: main
width: 950
- height: 620
+ height: 800
color: '#171717'
ListView {
diff --git a/tools/pngdumper/pngdumper.qml b/tools/pngdumper/pngdumper.qml
index 3b6fdc5..fa2faaf 100644
--- a/tools/pngdumper/pngdumper.qml
+++ b/tools/pngdumper/pngdumper.qml
@@ -26,8 +26,8 @@
**
****************************************************************************/
-import QtQuick 2.0
-import org.qtproject.pngdumper 1.0
+import QtQuick 2.12
+import org.qtproject.pngdumper 1.12
Rectangle {
id: main
diff --git a/tools/pngdumper/pngdumper_plugin.cpp b/tools/pngdumper/pngdumper_plugin.cpp
index e9b6912..caf6565 100644
--- a/tools/pngdumper/pngdumper_plugin.cpp
+++ b/tools/pngdumper/pngdumper_plugin.cpp
@@ -34,5 +34,8 @@
void ItemcapturerPlugin::registerTypes(const char *uri)
{
qmlRegisterType<ItemCapturer>(uri, 1, 0, "ItemCapturer");
+
+ // Auto-increment the import to stay in sync with ALL future QtQuick minor versions from 5.12 onward
+ qmlRegisterModule(uri, 1, QT_VERSION_MINOR);
}