summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorFranck Arrecot <franck.arrecot@kdab.com>2016-04-26 17:32:14 +0200
committerFranck Arrecot <franck.arrecot@gmail.com>2016-04-26 15:48:52 +0000
commit900a187aee09b0a82a085979e6df9f275db2daca (patch)
treec9e8cfc5a39e902075b7d9fbc8aba542311b451a /examples
parent1dd56d12719bf13419c7f4f18e2d269f09baae6c (diff)
Moves QSortCriterion flag to QSortPolicy and remove it
Change-Id: I44f71671ead23256d5fdc621545492885ff940a5 Task-id: QTBUG-51486 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qt3d/gltf/main.qml4
-rw-r--r--examples/qt3d/materials/SortedForwardRenderer.qml6
2 files changed, 4 insertions, 6 deletions
diff --git a/examples/qt3d/gltf/main.qml b/examples/qt3d/gltf/main.qml
index 4af6ba49f..a09528155 100644
--- a/examples/qt3d/gltf/main.qml
+++ b/examples/qt3d/gltf/main.qml
@@ -78,9 +78,7 @@ Entity {
buffers : ClearBuffers.ColorDepthBuffer
clearColor: "black"
SortPolicy {
- criteria: [
- SortCriterion { sort: SortCriterion.BackToFront }
- ]
+ sortTypes: [ SortType.BackToFront ]
}
}
}
diff --git a/examples/qt3d/materials/SortedForwardRenderer.qml b/examples/qt3d/materials/SortedForwardRenderer.qml
index eca45927a..e39afa2f5 100644
--- a/examples/qt3d/materials/SortedForwardRenderer.qml
+++ b/examples/qt3d/materials/SortedForwardRenderer.qml
@@ -79,9 +79,9 @@ TechniqueFilter {
buffers : ClearBuffers.ColorDepthBuffer
clearColor: "white"
SortPolicy {
- criteria: [
- SortCriterion { sort: SortCriterion.StateChangeCost },
- SortCriterion { sort: SortCriterion.Material }
+ sortTypes: [
+ SortPolicy.StateChangeCost,
+ SortPolicy.Material
]
}
}