From da59b50ce76d1c64d029a903c8af89fd82f3a7e5 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 9 May 2013 20:42:42 +0200 Subject: [PATCH] add the center indicator --- .../contents/configuration/panelconfiguration/Ruler.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/shell/qmlpackages/desktop/contents/configuration/panelconfiguration/Ruler.qml b/src/shell/qmlpackages/desktop/contents/configuration/panelconfiguration/Ruler.qml index e4b66444e..920aa7aa1 100644 --- a/src/shell/qmlpackages/desktop/contents/configuration/panelconfiguration/Ruler.qml +++ b/src/shell/qmlpackages/desktop/contents/configuration/panelconfiguration/Ruler.qml @@ -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