more comment&docs
This commit is contained in:
parent
846f740dae
commit
60976b67ae
@ -89,6 +89,7 @@ PlasmaComponents.Page {
|
|||||||
orientation: Qt.Horizontal
|
orientation: Qt.Horizontal
|
||||||
minimumValue: 0
|
minimumValue: 0
|
||||||
maximumValue: 255
|
maximumValue: 255
|
||||||
|
tickmarksEnabled: true
|
||||||
stepSize: 10
|
stepSize: 10
|
||||||
Keys.onTabPressed: blueSlider.forceActiveFocus()
|
Keys.onTabPressed: blueSlider.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ import "styles" as Styles
|
|||||||
/**
|
/**
|
||||||
* An interactive slider component with Plasma look and feel.
|
* An interactive slider component with Plasma look and feel.
|
||||||
*
|
*
|
||||||
* @inherit QtControls.Button
|
* @inherit QtControls.Slider
|
||||||
*/
|
*/
|
||||||
QtControls.Slider {
|
QtControls.Slider {
|
||||||
id: slider
|
id: slider
|
||||||
|
@ -69,7 +69,6 @@ QtQuickControlStyle.SliderStyle {
|
|||||||
height: groove.height
|
height: groove.height
|
||||||
|
|
||||||
width: styleData.handlePosition
|
width: styleData.handlePosition
|
||||||
x: 0
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
visible: value > 0 && slider.enabled
|
visible: value > 0 && slider.enabled
|
||||||
@ -84,6 +83,8 @@ QtQuickControlStyle.SliderStyle {
|
|||||||
color: theme.textColor
|
color: theme.textColor
|
||||||
width: 1 ; height: 3
|
width: 1 ; height: 3
|
||||||
y: repeater.height
|
y: repeater.height
|
||||||
|
//Position ticklines from styleData.handleWidth to width - styleData.handleWidth/2
|
||||||
|
//position them at an handle width increment
|
||||||
x: styleData.handleWidth / 2 + index * ((repeater.width - styleData.handleWidth) / (repeater.count-1))
|
x: styleData.handleWidth / 2 + index * ((repeater.width - styleData.handleWidth) / (repeater.count-1))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user