summaryrefslogtreecommitdiffstats
path: root/templates/TabButton.qml
diff options
context:
space:
mode:
authorDoris Verria <[email protected]>2025-03-19 19:51:04 +0100
committerDoris Verria <[email protected]>2025-03-20 08:47:54 +0000
commit18170399f2591a760a9efaedcb1465bd865ca590 (patch)
treeaed1a1d322bf3665c966cc0245252187f9395c0d /templates/TabButton.qml
parent914bf77c777211ea930d606e3e03e473e818a3e6 (diff)
Hide dynamic QML properties that are meant to be private with "__"HEADdev
Change-Id: I48aa3e694b2dbb83fe50bd7a6f84f793a0e2c47f Reviewed-by: Richard Moe Gustavsen <[email protected]>
Diffstat (limited to 'templates/TabButton.qml')
-rw-r--r--templates/TabButton.qml24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/TabButton.qml b/templates/TabButton.qml
index bce7a57..3535d82 100644
--- a/templates/TabButton.qml
+++ b/templates/TabButton.qml
@@ -10,17 +10,17 @@ T.TabButton {
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
- spacing: config.spacing || 0
+ spacing: __config.spacing || 0
- topPadding: config.topPadding || 0
- bottomPadding: config.bottomPadding || 0
- leftPadding: config.leftPadding || 0
- rightPadding: config.rightPadding || 0
+ topPadding: __config.topPadding || 0
+ bottomPadding: __config.bottomPadding || 0
+ leftPadding: __config.leftPadding || 0
+ rightPadding: __config.rightPadding || 0
- topInset: -config.topInset || 0
- bottomInset: -config.bottomInset || 0
- leftInset: -config.leftInset || 0
- rightInset: -config.rightInset || 0
+ topInset: -__config.topInset || 0
+ bottomInset: -__config.bottomInset || 0
+ leftInset: -__config.leftInset || 0
+ rightInset: -__config.rightInset || 0
readonly property string __currentState: [
checked && "checked",
@@ -28,13 +28,13 @@ T.TabButton {
enabled && !down && hovered && "hovered",
down && "pressed"
].filter(Boolean).join("_") || "normal"
- readonly property var config: Config.controls.tabbutton[__currentState] || {}
+ readonly property var __config: Config.controls.tabbutton[__currentState] || {}
contentItem: IconLabel {
spacing: control.spacing
mirrored: control.mirrored
display: control.display
- alignment: control.config.label.textVAlignment | control.config.label.textHAlignment
+ alignment: control.__config.label.textVAlignment | control.__config.label.textHAlignment
icon: control.icon
text: control.text
font: control.font
@@ -42,6 +42,6 @@ T.TabButton {
}
background: StyleImage {
- imageConfig: control.config.background
+ imageConfig: control.__config.background
}
}