Commit 05829c83 authored by ivan tkachenko's avatar ivan tkachenko Committed by Nate Graham
Browse files

[desktoppackage] Clean up ruler handles defaultPosition implementation

parent eacf23f7
......@@ -49,11 +49,6 @@ PlasmaCore.FrameSvgItem {
leftMaximumLengthHandle.value = panel.maximumLength
}
function defaultPosition(value: int): int {
var dialogSize = dialogRoot.vertical ? dialogRoot.height : dialogRoot.width;
return (value === panel.length) ? dialogSize : panel.length;
}
PlasmaCore.Svg {
id: containmentControlsSvg
imagePath: "widgets/containment-controls"
......@@ -105,7 +100,7 @@ PlasmaCore.FrameSvgItem {
return dialogRootSize - panel.maximumLength / 2 - size / 2
}
}
function defaultPosition(): int {
function defaultPosition(): int /*override*/ {
return 0;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment