Skip to content
Snippets Groups Projects
Commit 3e6970f3 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Felix Paul Kühne
Browse files

qml: add `effectiveRadius` property to `RoundImage.qml`

Rounding is done within the shader now. Since shaders
are only supported with RHI now, there is no rounding
when RHI is not used. In that case, we can represent
the effective radius with a read-only `effectiveRadius`
property which would be 0 with non-RHI (software or
openvg mode) cases.
parent f938f458
No related branches found
No related tags found
1 merge request!6448qt: do not use radius in static shadow effect if image can not be rounded
......@@ -38,6 +38,7 @@ Item {
// so it is not provided as an alias here
property real radius
readonly property real effectiveRadius: (shaderEffect.readyForVisibility ?? shaderEffect.visible) ? radius : 0.0
// NOTE: Note the distinction between ShaderEffect and
// ShaderEffectSource. ShaderEffect is no different
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment