aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/tst_qtgraphicaleffects.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove qtgraphicaleffects sources and add note about its state in Qt 6HEADdevAlexandru Croitor2021-08-121-542/+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>
* Port 17 effects to RHI, remove 8 unportable onesLaszlo Agocs2020-06-091-237/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Merge remote-tracking branch 'origin/wip/qt6' into wip/cmakeAlexandru Croitor2019-08-161-2/+2
|\ | | | | | | Change-Id: Id5ceea2d4517a91f6ce5039711669ea419aad4c3
| * Eradicate the last Q_FOREACH and mark the module cleanMarc Mutz2019-07-111-2/+2
| | | | | | | | | | | | | | ... of Q_FOREACH, Java-style iterators, and QLinkedList use. Change-Id: Ied30922433d2c3afc599f4e59a4082324b8b2957 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* | Initial CMake portAlexandru Croitor2019-08-151-0/+1
|/ | | | | | Task-number: QTBUG-75999 Change-Id: Id47cd7a769a27a6776ced0ce92b89a8bdf4f7da1 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Android: Fix autotestEskil Abrahamsen Blomfeldt2019-03-041-1/+5
| | | | | | | | | | | | | | | | First of all, we need to include a dummy.qml which imports the graphical effects, otherwise it will be ignored by qmlimportscanner, since all the QML code is generated programmatically. Second of all, using the Qml2ImportPath to look up the imports is not sufficient on Android, where the QML2_IMPORT_PATH environment variable is used instead. So we just add code to check this first, based on the order of precedence actually used by Qt. Task-number: QTBUG-73574 Change-Id: I7b140dcac758ff37340fd7539f5cacb2982ff7aa Reviewed-by: Daniel Smith <Daniel.Smith@qt.io> Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* tst_graphicaleffects: use QScopedPointerMitch Curtis2018-05-281-100/+51
| | | | | | | Otherwise failed QVERIFYs, etc. will result in leaked memory. Change-Id: I0a48f62a28ebaa04a856a4b772f5ff98def4f171 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Revert "Skip tst_qtgraphicaleffects::innerShadow on qemu"Sami Nurmenniemi2018-01-081-4/+0
| | | | | | | | | | This reverts commit 247f19f08adfa287e9c5493ce8ffc2e3db260956. QtDeclarative was fixed with 781caafe1fde71b059c0e3a42bda77ce0d7e4c2a and tests pass now. Task-number: QTBUG-65521 Change-Id: I43b2cd4be334248f35bbcf1403e668cb21129421 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Skip tst_qtgraphicaleffects::innerShadow on qemuSami Nurmenniemi2017-12-151-0/+4
| | | | | | Task-number: QTBUG-65204 Change-Id: I4fa090f6557f893e5bada9a73896aba47d9e7959 Reviewed-by: Liang Qi <liang.qi@qt.io>
* Fix licensingJani Heikkinen2017-05-101-1/+1
| | | | | | | | | | | | | - 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>
* Updated license headersAntti Kokko2016-01-201-17/+12
| | | | | | | | | | | From Qt 5.7 -> tools & applications are lisenced under GPL v3 with some exceptions, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new GPL-EXCEPT header instead of LGPL21 one (in those files which will be under GPL 3 with exceptions) Change-Id: I958a4fa8bb2ed83873045dac405d02659fc4f71a Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Update tests results of QColor <=> QString conversion code updateJędrzej Nowacki2015-12-031-3/+3
| | | | | | | The tests was depending on a buggy behavior (QTBUG-37851) Change-Id: I238ff02a3ac4cdb4690b5233603f7cb4db3ef422 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Make DropShadow properties into 'real' again.Gunnar Sletta2015-10-191-4/+0
| | | | | | Change-Id: Icf416b5db2cf9dbb0be29fc0e3b9a855c58035e3 Task-number: QTBUG-48625 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Test type of double propertiesMitch Curtis2015-10-091-4/+55
| | | | | | | | | | This allows us to sanity-check future changes. The newly added checks are expected to fail until QTBUG-48625 is fixed. Change-Id: I9d505ee83ce774a13334c9d2e3c03baea0862237 Task-number: QTBUG-48625 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Change the default DropShadow offset back to 0.Gunnar Sletta2015-08-171-2/+2
| | | | | | | | | | Though this makes DropShadows work out of the box and be less confusing to users, it also ends up breaking code that uses DropShadow as a glow effect. Change-Id: Id65dc85d2877709f3bd8d036f06c7b8fc2886777 Task-number: QTBUG-47749 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Adapt QtGraphicalEffects autotest to check for the new values.Gunnar Sletta2015-03-241-15/+11
| | | | | Change-Id: Iff577c9400cf2b3de9b97c8b898b4c971a2b9514 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* Adapt GaussianBlur autotest to the new default values.Gunnar Sletta2015-03-131-4/+3
| | | | | Change-Id: I27c405af55384b5ea9a5c823bfed9fb5e8ba2161 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-7/+7
| | | | | | | | | 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>
* Update license headers and add new licensesv5.4.0-alpha1Jani Heikkinen2014-08-241-19/+11
| | | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I452f44a464e8da80ee4c0c38de6ec6abfd6ac285 Reviewed-by: Antti Kokko <antti.kokko@digia.com> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* tst_qtgraphicaleffects: make the test work on devicesold/5.2Sergio Ahumada2014-02-061-1/+1
| | | | | | | | | | | | Make the test find the 'QtGraphicalEffects' import under Qml2ImportsPath (QML 2.x) instead of ImportsPath (QML 1.x) when the source code is not available. This seems to have worked so far because the source code is always available in the CI machines, but it fails on devices where is not. Change-Id: I475ccd5431d5e7c3adf239b1158d7bb67e0bc042 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.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>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-24/+24
| | | | | | | | | 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>
* Don't use QtDeclarative compat moduleSergio Ahumada2012-05-181-80/+80
| | | | | | | Use QtQml instead. Change-Id: I88479de928a358a521efded01c68ac2c37f953bb Reviewed-by: Marko Niemelä <marko.a.niemela@nokia.com>
* tst_qtgraphicaleffects: make the test work prior to installationRohan McGovern2012-03-061-26/+43
| | | | | | | | | | | | | | | | | Tests should be working both before and after `make install'. Adjust this test so it can load QtGraphicalEffects either from the source tree or the install tree. This code already attempted to accomplish this: engine.addImportPath("../../src"); It didn't work, since the directory in the source tree is named "effects" and not "QtGraphicalEffects". It also would not work when the build tree and source tree are different. Change-Id: Ied964714d72e041caa937a4204668fe4f86da3f5 Reviewed-by: Marko Niemelä <marko.a.niemela@nokia.com>
* tst_qtgraphicaleffects: fixed typoRohan McGovern2012-03-061-2/+2
| | | | | | | lenght -> length Change-Id: I406995cad6992e5f48e38ebcb6d94cfae2a1b9db Reviewed-by: Marko Niemelä <marko.a.niemela@nokia.com>
* tst_qtgraphicaleffects: improved creation of componentsRohan McGovern2012-03-061-27/+69
| | | | | | | | | | | If errors occur, include them in the test failure message. Verify that the component is ready before calling create(). Remove unnecessary QTest::qWait(). Change-Id: I6a63bafed859ab564c3e3fc7a044ac998e079fea Reviewed-by: Marko Niemelä <marko.a.niemela@nokia.com>
* Fix outdated license headerSergio Ahumada2012-03-061-3/+3
| | | | | Change-Id: I210c10369f97ab8289bff3c3d7e6dc26d9215936 Reviewed-by: Jyri Tahtela <jyri.tahtela@nokia.com>
* Renamed BlendEffect property backgroundSource -> sourceMarko Niemelä2012-01-161-2/+2
|
* Renamed property maskSource -> source in all gradient effectsMarko Niemelä2012-01-161-3/+3
|
* Renamed FastBlur property blur -> radiusMarko Niemelä2012-01-111-1/+1
|
* Renamed property maximumRadius -> samples in many effectsMarko Niemelä2012-01-101-5/+5
|
* Version number updatedMarko Niemelä2012-01-101-25/+25
|
* Added MaskedBlur effectMarko Niemelä2012-01-091-0/+28
|
* Merged InnerShadow and FastInnerShadow effectsMarko Niemelä2012-01-051-30/+1
|
* Combined DropShadow and FastDropShadow effectsMarko Niemelä2012-01-041-28/+1
|
* Combined Glow and FastGlow effectsMarko Niemelä2012-01-041-27/+1
|
* Added LevelAdjust effectMarko Niemelä2012-01-041-0/+31
|
* Added InnerShadow and FastInnerShadow effectsMarko Niemelä2011-12-301-0/+59
|
* Initial commitKim Gronholm2011-12-271-0/+695