diff options
author | Karim Pinter <karim.pinter@qt.io> | 2020-01-16 15:16:07 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-01-22 07:41:49 +0000 |
commit | 39c614bed375d67f796d1519ebd2997060f81a0b (patch) | |
tree | 2c00363295abe47ad02cac372ec05fca1f045bcf /src | |
parent | 5e1cbbe0b9f68c441a3cb1b22594b88763075f4e (diff) |
Remove shadereffect dependency from shapes
Uses wavefrontmesh only if the shadereffect feature is there. Path
doesn't need to depend on shadereffect feature only on gui module. The
shape also missed a sgtexture header.
Fixes: QTBUG-81296
Change-Id: I78425ef8a09226b99e9b9f6010dda9dac9009fe5
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/imports.pro | 5 | ||||
-rw-r--r-- | src/quick/configure.json | 2 | ||||
-rw-r--r-- | src/quickshapes/qquickshapegenericrenderer_p.h | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/imports/imports.pro b/src/imports/imports.pro index 9973883024..e0f66838ec 100644 --- a/src/imports/imports.pro +++ b/src/imports/imports.pro @@ -20,8 +20,9 @@ qtHaveModule(quick) { labsanimation \ layouts \ qtquick2 \ - window \ - wavefrontmesh + window + + qtConfig(quick-shadereffect): SUBDIRS += wavefrontmesh qtHaveModule(testlib): SUBDIRS += testlib qtConfig(systemsemaphore): SUBDIRS += sharedimage diff --git a/src/quick/configure.json b/src/quick/configure.json index f8277332dc..8d1ddaea7c 100644 --- a/src/quick/configure.json +++ b/src/quick/configure.json @@ -134,7 +134,7 @@ "label": "Path support", "purpose": "Provides Path elements.", "section": "Qt Quick", - "condition": "features.quick-shadereffect", + "condition": "module.gui", "output": [ "privateFeature" ] diff --git a/src/quickshapes/qquickshapegenericrenderer_p.h b/src/quickshapes/qquickshapegenericrenderer_p.h index 4590c662c1..75c4277383 100644 --- a/src/quickshapes/qquickshapegenericrenderer_p.h +++ b/src/quickshapes/qquickshapegenericrenderer_p.h @@ -57,6 +57,7 @@ #include <qsggeometry.h> #include <qsgmaterial.h> #include <qsgrendererinterface.h> +#include <qsgtexture.h> #include <QtCore/qrunnable.h> QT_BEGIN_NAMESPACE |