1ebc7dbfcbab700e3cb7270333364fb2ad2b72d5
[feedingit] / psa_harmattan / feedingit / qml / SliderSetting.qml
1 import QtQuick 1.0
2 import com.nokia.meego 1.0
3
4 Row {
5     width: parent.width
6     property alias text: themeText.text
7     property alias value: mySlider.value
8     signal valueChanged()
9
10     Text {
11         id: themeText
12         color: settings.mainTextColour;
13         font.pointSize: settings.mainTextSize
14         width: parent.width - mySlider.width
15         wrapMode: Text.WordWrap;
16     }
17
18     Slider {
19          id:mySlider
20          stepSize:1
21          valueIndicatorVisible: true
22          minimumValue:12
23          maximumValue:30
24          width:300
25          onPressedChanged: if (!pressed) { parent.valueChanged() }
26          orientation: Qt.Horizontal
27      }
28 }