aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/ColorOverlay.qml
Commit message (Collapse)AuthorAgeFilesLines
* Remove qtgraphicaleffects sources and add note about its state in Qt 6HEADdevAlexandru Croitor2021-08-121-157/+0
| | | | | | | | | | | 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>
* License the Qt Graphical Effects module under BSDVolker Hilsheimer2020-06-301-20/+31
| | | | | | | | | | | | Change license headers in source files, update copyright year for Qt Company entries, remove GPL and LGPL license files, add a 3-clause BSD license file. Tests and tools continue to be licensed under GPL with Exceptions. Fixes: QTBUG-85256 Change-Id: I7a772c7746a00dd6aa3e6401a048a9229c291f6f Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Port 17 effects to RHI, remove 8 unportable onesLaszlo Agocs2020-06-091-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following are based on static shader code, and after porting the shaders they will work fully identically to 5.15: FastBlur Colorize OpacityMask BrightnessContrast ColorOverlay Desaturate Displace GammaAdjust HueSaturation LevelAdjust RectangularGlow Thresholdmask LinearGradient RadialGradient ConicalGradient The following change behavior: Glow DropShadow These now only have the fast variants, because those rely on static shader code. So we are going back to the Qt 5.5 versions and make them behave as if 'fast' was always set to true. The 'fast' and 'samples' properties are removed. The following are removed: Blend GaussianBlur DirectionalBlur MaskedBlur RadialBlur RecursiveBlur ZoomBlur InnerShadow The autotest and the gallery application (run qmlscene testBed.qml in tests/manual/testbed) have been adjusted accordingly and now work across all QRhi backends. The docs may still refer to removed effects in some code snippets. Updating that is left as a separate exercise. [ChangeLog] Graphical Effects no longer relies on dynamically generated shader strings. The following effects have been removed: Blend, GaussianBlur, MaskedBlur, RadialBlur, RecursiveBlur, ZoomBlur, InnerShadow. Glow and DropShadow always use the 'fast' variant. The fast and samples properties for these are thus no longer applicable and have been removed. Change-Id: Ife83f3828f37977596fd34f8da8b61961f0ed28a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Fix interpolation of effectsMitch Curtis2019-10-241-2/+1
| | | | | | | | | | | | | | | | | | | | | 6f02d6fc made relevant effects respect the smooth property of the layer, but made a few mistakes in the interpolation binding: - It got the order of the ternary operator branches wrong: Nearest was used when smooth was true, when it should have been Linear. - It uses the smooth property of the layer, which is automatically set by QGfxSourceProxy::updatePolish() as a result of setting its interpolation. - It also used the smooth property of the rootItem, which is the overlay itself, and not the source item. It would make more sense to base it on the smooth property of the source item, since all Item-derived types have this. Somehow (and luckily) this didn't result in any visible issues. Task-number: QTBUG-67382 Change-Id: I264579505b4195f5d19e1869e7e579d75bf97d5d Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* add qmlRegisterModule to QML plugins (QUIP 99)Shawn Rutledge2018-10-231-2/+2
| | | | | | | | | | | | | | | | Now it should always be possible to do import QtGraphicalEffects 1.m where m is Qt's minor version. [ChangeLog][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. Change-Id: I4fa13fa9a662933161ff726a3e2ba586b2f7f6ff Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Make relevant effects respect layer.smoothMitch Curtis2018-05-291-0/+2
| | | | | | | | | | | | | | | | | | | Currently, source items that set smooth to false will have blurry effects when using layer.effect. Fix that by setting the interpolation property of each effect's SourceProxy. Standalone effects seem to work fine already. The patch adds a manual testcase: "smooth". This can be used to verify that the functionality works in the future, as adding an auto test is not really possible. This isn't done for all effects, as it doesn't make sense for all of them (blurs, for example). Task-number: QTBUG-67382 Change-Id: Ic6f030090cd0579dd4259ebafc9c99a8b9940494 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Support OpenGL core profileJoni Poikelin2017-06-081-10/+1
| | | | | | | | | [ChangeLog][Qt Graphical Effects] Added QtGraphicalEffects support for OpenGL Core profile contexts. Task-number: QTBUG-42107 Change-Id: I7111e2e6fb3a0b0391e76a17a8d091d288bfcc23 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Fix licensingJani Heikkinen2017-05-101-28/+27
| | | | | | | | | | | | | - Remove unused old license files - Unify licensing * Tools and tests are nowdays licensed under GPL-EXCEPT, update correct license header to those * Src is nowdays licensed under LGPL, update correct license header to there Task-number: QTBUG-57147 Change-Id: I9664c854108ca7c1e0be02fdae9e8d7c480dfd4c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Document that the effects need OpenGLLaszlo Agocs2016-06-241-0/+2
| | | | | Change-Id: Ie42ce93850475c036b2bb4e1fa9068c597317c48 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Move SourceProxy to C++ and introduce "private" module.Gunnar Sletta2015-03-101-1/+1
| | | | | | | | | | | This gives us a bit better control in terms of what we want to check for. It should also fix some subtle bugs when layer and ShaderEffectSource is used as input. Change-Id: I29de13598811623c31563ac6e88f070aee0bab54 Task-number: QTBUG-40849 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Update copyright headersv5.5.0-rc1v5.5.0-beta1v5.5.0-alpha1v5.5.0Antti Kokko2015-02-171-4/+4
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I8983b05749d75b438a314e7f385a85c612a04f6f Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Remove unnecessary \inqmlmodule parameterAlejandro Exojo2014-12-081-1/+1
| | | | | Change-Id: Ib685e533a97bae865df5802c4f9e7399c8cfd078 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Document recursion limitations of the graphical effects.v5.2.0-rc1v5.2.0Gunnar Sletta2013-11-071-0/+3
| | | | | | | Task-number: QTBUG-31902 Change-Id: Id9d81ffddda3ee666840f602bb8c85ff00545547 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | Change-Id: Idaf2ac8f4dc2a8586c6e148bd67a33e9bdd677e1 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Doc: Modularized documentation.Jerome Pasion2012-09-251-0/+69
| | | | | | | | | | -moved API documentation in QML files -moved snippets, images, and qdoc files to src/effects/doc -deleted old .pri and .qdocconf files -fixed relative paths Change-Id: I4e757e707b5f93a215506f8c2cbb7eb1f2321d4c Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-6/+6
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I06d9e8f818910ab9243afb73087f187a4b3b05f4 Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Renamed 'internal' folder to 'private'.Marko Niemelä2012-06-131-1/+1
| | | | | | | | Private is more widely used term for files that do not belong to public API. Change-Id: Ib4219a4026bc04f79f0803272f8af6a13b517ca8 Reviewed-by: Kim Gronholm <kim.1.gronholm@nokia.com>
* Added precision to all uniforms which did not have it.Marko Niemelä2012-03-161-1/+1
| | | | | | | | If precision qualifier is missing, shader compilation may fail on some GPU:s. Change-Id: I8bad4855203ba9f0b233a877b1a012c608801bd6 Reviewed-by: Kim Gronholm <kim.1.gronholm@nokia.com>
* Fix outdated license headerSergio Ahumada2012-03-061-3/+3
| | | | | Change-Id: I210c10369f97ab8289bff3c3d7e6dc26d9215936 Reviewed-by: Jyri Tahtela <jyri.tahtela@nokia.com>
* Moved non-API qml files into internal directoryMarko Niemelä2012-01-041-0/+1
|
* Initial commitKim Gronholm2011-12-271-0/+82