Skip to content
Snippets Groups Projects
Verified Commit 47a7adf8 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Use readonly properties where possible

parent 9b8e6c7f
No related branches found
No related tags found
No related merge requests found
Pipeline #876 passed
......@@ -43,7 +43,7 @@ ScrollView {
property alias model: row.model
// use comma to update on scroll
property var attachedPos: chat.contentY, attached ? chat.mapFromItem(attached, attached ? attached.width - width : 0, -height) : null
property int padding: 4
readonly property int padding: 4
visible: Settings.buttonsInTimeline && !!attached && (attached.hovered || messageActionHover.hovered)
x: attached ? attachedPos.x : 0
......
......@@ -20,7 +20,7 @@ Page {
property var colors: currentActivePalette
property var systemInactive
property var inactiveColors: currentInactivePalette ? currentInactivePalette : systemInactive
property int avatarSize: 40
readonly property int avatarSize: 40
property real highlightHue: colors.highlight.hslHue
property real highlightSat: colors.highlight.hslSaturation
property real highlightLight: colors.highlight.hslLightness
......
......@@ -13,9 +13,9 @@ Item {
property real radius: 0
property color color: "#22000000"
property real maxRadius: Math.max(width, height)
property real radiusAnimationRate: 0.05
property real radiusTailAnimationRate: 0.5
property real opacityAnimationDuration: 300
readonly property real radiusAnimationRate: 0.05
readonly property real radiusTailAnimationRate: 0.5
readonly property real opacityAnimationDuration: 300
readonly property real diameter: radius * 2
property real centerX
property real centerY
......
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