add the center indicator

This commit is contained in:
Marco Martin 2013-05-09 20:42:42 +02:00
parent b57d9e02c0
commit da59b50ce7

View File

@ -51,6 +51,15 @@ PlasmaCore.FrameSvgItem {
id: containmentControlsSvg
imagePath: "widgets/containment-controls"
}
PlasmaCore.SvgItem {
id: centerMark
svg: containmentControlsSvg
elementId: dialogRoot.vertical ? "vertical-centerindicator" : "horizontal-centerindicator"
visible: panel.alignment == Qt.AlignCenter
width: dialogRoot.vertical ? parent.width : naturalSize.width
height: dialogRoot.vertical ? naturalSize.height : parent.height
anchors.centerIn: parent
}
SliderHandle {
id: offsetHandle