Debian Codegraph @

src/GUI/qml/RatingSlider.qml

raw
1 import QtQuick 2.4
2 import FlightGear 1.0
3
4 Slider {
5 property var ratings: []
6 property int ratingIndex: 0
7
8 min: 0
9 max: 5
10
11 value: ratings[ratingIndex]
12 width: editRatingsPanel.width - Style.strutSize
13 anchors.horizontalCenter: parent.horizontalCenter
14 sliderWidth: width / 2
15
16 onValueChanged: {
17 ratings[ratingIndex] = value
18 _launcher.browseAircraftModel.saveRatingsSettings();
19 }
20 }