Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNino van Hooff <ninovanhooff@gmail.com>2019-10-29 16:11:09 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2019-10-29 16:11:09 +0300
commit888c3f51a5718c80f9b3736aa86e5953e1c4ed8d (patch)
tree291f3a5d5863766472ce0516de94d61eeeea28f5 /plugins/SimulationView
parent3db5abbd3ac0d1561b03d9081ebda22c2d0d3518 (diff)
Show both handle labels instead of the range label
Now that the labels are horizontally centered with the handles, the range label would overlap the bottom handle. So instead, delete the range handle and show both other handles instead. CURA-6854
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r--plugins/SimulationView/LayerSlider.qml19
1 files changed, 2 insertions, 17 deletions
diff --git a/plugins/SimulationView/LayerSlider.qml b/plugins/SimulationView/LayerSlider.qml
index 4ff959370c..eff27c43a7 100644
--- a/plugins/SimulationView/LayerSlider.qml
+++ b/plugins/SimulationView/LayerSlider.qml
@@ -158,21 +158,6 @@ Item
onPressed: sliderRoot.setActiveHandle(rangeHandle)
}
- SimulationSliderLabel
- {
- id: rangleHandleLabel
- y: parent.height / 2
- height: sliderRoot.handleSize + UM.Theme.getSize("small_margin").height
- anchors.horizontalCenter: parent.horizontalCenter
- target: Qt.point(parent.width / 2, y -100)
- visible: sliderRoot.activeHandle == parent
-
- // custom properties
- maximumValue: sliderRoot.maximumValue
- value: sliderRoot.upperValue
- busy: UM.SimulationView.busy
- setValue: rangeHandle.setValueManually // connect callback functions
- }
}
onHeightChanged : {
@@ -279,7 +264,7 @@ Item
anchors.bottomMargin: UM.Theme.getSize("narrow_margin").height
anchors.horizontalCenter: parent.horizontalCenter
target: Qt.point(parent.width / 2, parent.top)
- visible: sliderRoot.activeHandle == parent
+ visible: sliderRoot.activeHandle == parent || sliderRoot.activeHandle == rangeHandle
// custom properties
maximumValue: sliderRoot.maximumValue
@@ -389,7 +374,7 @@ Item
anchors.topMargin: UM.Theme.getSize("narrow_margin").height
anchors.horizontalCenter: parent.horizontalCenter
target: Qt.point(parent.width / 2, parent.bottom)
- visible: sliderRoot.activeHandle == parent
+ visible: sliderRoot.activeHandle == parent || sliderRoot.activeHandle == rangeHandle
// custom properties
maximumValue: sliderRoot.maximumValue