From 13c5cf9380207530b0932bf037fdaec143a444fb Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 9 May 2013 20:48:36 +0200 Subject: [PATCH] use dialogRoot.vertical --- .../configuration/panelconfiguration/SliderHandle.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell/qmlpackages/desktop/contents/configuration/panelconfiguration/SliderHandle.qml b/src/shell/qmlpackages/desktop/contents/configuration/panelconfiguration/SliderHandle.qml index cdde8c755..e13cb9dce 100644 --- a/src/shell/qmlpackages/desktop/contents/configuration/panelconfiguration/SliderHandle.qml +++ b/src/shell/qmlpackages/desktop/contents/configuration/panelconfiguration/SliderHandle.qml @@ -41,7 +41,7 @@ PlasmaCore.SvgItem { property int alignment: panel.alignment function syncPos() { - if (panel.location == 5 || panel.location == 6) { + if (dialogRoot.vertical) { if (alignment == Qt.AlignRight) { y = root.parent.height - (value + offset + root.height/2) } else if (alignment == Qt.AlignLeft) { @@ -83,11 +83,11 @@ PlasmaCore.SvgItem { MouseArea { drag { target: parent - axis: (panel.location == 5 || panel.location == 6) ? Drag.YAxis : Drag.XAxis + axis: (dialogRoot.vertical) ? Drag.YAxis : Drag.XAxis } anchors.fill: parent onPositionChanged: { - if (panel.location == 5 || panel.location == 6) { + if (dialogRoot.vertical) { if (root.alignment == Qt.AlignRight) { root.value = root.parent.height - (parent.y + offset + root.height/2) } else if (alignment == Qt.AlignLeft) {