more comment&docs

This commit is contained in:
Marco Martin 2014-08-28 16:04:02 +02:00
parent 846f740dae
commit 60976b67ae
3 changed files with 4 additions and 2 deletions

View File

@ -89,6 +89,7 @@ PlasmaComponents.Page {
orientation: Qt.Horizontal
minimumValue: 0
maximumValue: 255
tickmarksEnabled: true
stepSize: 10
Keys.onTabPressed: blueSlider.forceActiveFocus()
}

View File

@ -28,7 +28,7 @@ import "styles" as Styles
/**
* An interactive slider component with Plasma look and feel.
*
* @inherit QtControls.Button
* @inherit QtControls.Slider
*/
QtControls.Slider {
id: slider

View File

@ -69,7 +69,6 @@ QtQuickControlStyle.SliderStyle {
height: groove.height
width: styleData.handlePosition
x: 0
anchors.verticalCenter: parent.verticalCenter
visible: value > 0 && slider.enabled
@ -84,6 +83,8 @@ QtQuickControlStyle.SliderStyle {
color: theme.textColor
width: 1 ; height: 3
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))
}
}