style tickmarks

This commit is contained in:
Marco Martin 2014-08-28 13:15:09 +02:00
parent 4ec02e7b1d
commit d6b08c303a

View File

@ -77,5 +77,14 @@ QtQuickControlStyle.SliderStyle {
}
// tickmarks:
tickmarks: Repeater {
id: repeater
model: control.stepSize > 0 ? 1 + (control.maximumValue - control.minimumValue) / control.stepSize : 0
Rectangle {
color: theme.textColor
width: 1 ; height: 3
y: repeater.height
x: styleData.handleWidth / 2 + index * ((repeater.width - styleData.handleWidth) / (repeater.count-1))
}
}
}