18 import Ubuntu.Components 0.1
24 property real halfSize
25 property real posOffset
27 property real slice: (2 * Math.PI / count) * index;
29 implicitWidth: childrenRect.width
30 implicitHeight: childrenRect.height
32 x: (radius - halfSize * posOffset) * Math.sin(slice) + radius - halfSize
33 y: (radius - halfSize * posOffset) * -Math.cos(slice) + radius - halfSize
35 rotation: Math.atan2(radius-(y+halfSize), radius-(x+halfSize)) * 180 / Math.PI - 90