remove all signs of updateValueWhileDragging
This commit is contained in:
parent
11991bdd14
commit
091bde342d
@ -70,10 +70,6 @@ Plasma Properties:
|
|||||||
This property holds if the slider visualizations has an inverted direction.
|
This property holds if the slider visualizations has an inverted direction.
|
||||||
The default value is false.
|
The default value is false.
|
||||||
|
|
||||||
bool updateValueWhileDragging:
|
|
||||||
This property holds if the value is updated while dragging or if it applies only
|
|
||||||
when the slider's handler is released.
|
|
||||||
|
|
||||||
real handleSize:
|
real handleSize:
|
||||||
This property holds the size of the Slider's handle.
|
This property holds the size of the Slider's handle.
|
||||||
**/
|
**/
|
||||||
@ -153,7 +149,6 @@ Item {
|
|||||||
|
|
||||||
// Plasma API
|
// Plasma API
|
||||||
property bool animated: true
|
property bool animated: true
|
||||||
property bool updateValueWhileDragging: true
|
|
||||||
property real handleSize: theme.defaultFont.mSize.height*1.3
|
property real handleSize: theme.defaultFont.mSize.height*1.3
|
||||||
|
|
||||||
// Convenience API
|
// Convenience API
|
||||||
@ -270,21 +265,11 @@ Item {
|
|||||||
|
|
||||||
slider.forceActiveFocus()
|
slider.forceActiveFocus()
|
||||||
}
|
}
|
||||||
onReleased: {
|
|
||||||
// If we don't update while dragging, this is the only
|
|
||||||
// moment that the range is updated.
|
|
||||||
if (!slider.updateValueWhileDragging) {
|
|
||||||
range.position = fakeHandle.x
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Range position normally follow fakeHandle, except when
|
|
||||||
// 'updateValueWhileDragging' is false. In this case it will only follow
|
|
||||||
// if the user is not pressing the handle.
|
|
||||||
Binding {
|
Binding {
|
||||||
when: updateValueWhileDragging || !mouseArea.pressed
|
when: !mouseArea.pressed
|
||||||
target: range
|
target: range
|
||||||
property: "position"
|
property: "position"
|
||||||
value: fakeHandle.x
|
value: fakeHandle.x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user