4c2e52c2dc
Will fix an issue reported on the forum where a 2.7 dep crept it.
19 lines
359 B
QML
19 lines
359 B
QML
import QtQuick 2.4
|
|
import "."
|
|
|
|
Slider {
|
|
property var ratings: []
|
|
property int ratingIndex: 0
|
|
|
|
min: 0
|
|
max: 5
|
|
|
|
value: ratings[ratingIndex]
|
|
width: editRatingsPanel.width - Style.strutSize
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
sliderWidth: width / 2
|
|
|
|
onValueChanged: {
|
|
ratings[ratingIndex] = value
|
|
}
|
|
}
|