Changeset View
Changeset View
Standalone View
Standalone View
controls/Legend.qml
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 81 | delegate: LegendDelegate { | |||
---|---|---|---|---|---|
90 | colorWidth: control.colorWidth | 90 | colorWidth: control.colorWidth | ||
91 | valueVisible: control.valueVisible | 91 | valueVisible: control.valueVisible | ||
92 | valueWidth: control.valueWidth | 92 | valueWidth: control.valueWidth | ||
93 | 93 | | |||
94 | indicator: control.indicator | 94 | indicator: control.indicator | ||
95 | 95 | | |||
96 | font: control.font | 96 | font: control.font | ||
97 | 97 | | |||
98 | layoutWidth: control.Layout.maximumWidth / legendRepeater.count | 98 | layoutWidth: control.Layout.maximumWidth / Math.ceil(legendRepeater.count / legend.rows) - control.spacing | ||
99 | } | 99 | } | ||
100 | } | 100 | } | ||
101 | } | 101 | } | ||
102 | } | 102 | } |