aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDilek Akcay <dilek.akcay@qt.io>2026-07-16 10:54:09 +0200
committerDilek Akcay <dilek.akcay@qt.io>2026-07-18 10:27:17 +0000
commitba4049ac9f880c708104b23be39ac4e449551d9c (patch)
tree216f8d04af4f6f28753f16bafbfc829598ed0867 /examples
parentd4fcc5bd5e59f82767c16df9b9a55b30efe2687e (diff)
StyleKit Example: Fix ScrollIndicator positioning in Plain style
ScrollIndicator was positioned too far inside Menu and Popup because it had no explicit padding and therefore inherited control's padding values through fallback. These values were larger than intended for a ScrollIndicator. Set explicit padding values to position it correctly. Pick-to: 6.12 Change-Id: I513dfbbac9a81805614905cd56d1715b83ab99cc Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/stylekit/stylekitcontrols/styles/Plain.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/stylekit/stylekitcontrols/styles/Plain.qml b/examples/stylekit/stylekitcontrols/styles/Plain.qml
index 6f265d7a6f..e13a0caa8f 100644
--- a/examples/stylekit/stylekitcontrols/styles/Plain.qml
+++ b/examples/stylekit/stylekitcontrols/styles/Plain.qml
@@ -126,6 +126,10 @@ Style {
padding: 0
}
+ scrollIndicator {
+ padding: 2
+ }
+
pane {
/* The controls change background color on states like hover, but panes
* should not. Override the property here to disable that behavior for panes. */