diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2022-01-11 11:59:53 +0100 |
---|---|---|
committer | Henning Gruendl <henning.gruendl@qt.io> | 2022-01-12 13:30:38 +0100 |
commit | 4fb0164bc10a6741c917a7386fe5a494093ee70e (patch) | |
tree | aae98632860d8764b4063c92fae61fec6e588a89 /src/imports/components/PieItem.qml | |
parent | 3d2a31c27e7e0fa7c65364b0d2f3a1e82954397d (diff) |
Components: Use samples when antialiasing enabled
Use layer.samples: 4 whenever antialiasing is enabled on a component.
Remove bigger textureSize due to performance implications.
Task-number: QDS-5781
Change-Id: If73f136e21f70d76c58193545d657a9b52b0c38a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/imports/components/PieItem.qml')
-rw-r--r-- | src/imports/components/PieItem.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/components/PieItem.qml b/src/imports/components/PieItem.qml index 1b93bdc..3b2a60d 100644 --- a/src/imports/components/PieItem.qml +++ b/src/imports/components/PieItem.qml @@ -246,7 +246,7 @@ Shape { layer.enabled: root.antialiasing layer.smooth: root.antialiasing - layer.textureSize: Qt.size(root.width * 2, root.height * 2) + layer.samples: root.antialiasing ? 4 : 0 function clamp(num, min, max) { return Math.max(min, Math.min(num, max)) |