X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=psa_harmattan%2Ffeedingit%2Fqml%2FSliderSetting.qml;fp=psa_harmattan%2Ffeedingit%2Fqml%2FSliderSetting.qml;h=1ebc7dbfcbab700e3cb7270333364fb2ad2b72d5;hb=33dcf96e8c56a1371951f1e1e004c8787a673329;hp=0000000000000000000000000000000000000000;hpb=8343d987e0e52c552c5294541e0bb2c913cc69f6;p=feedingit diff --git a/psa_harmattan/feedingit/qml/SliderSetting.qml b/psa_harmattan/feedingit/qml/SliderSetting.qml new file mode 100644 index 0000000..1ebc7db --- /dev/null +++ b/psa_harmattan/feedingit/qml/SliderSetting.qml @@ -0,0 +1,28 @@ +import QtQuick 1.0 +import com.nokia.meego 1.0 + +Row { + width: parent.width + property alias text: themeText.text + property alias value: mySlider.value + signal valueChanged() + + Text { + id: themeText + color: settings.mainTextColour; + font.pointSize: settings.mainTextSize + width: parent.width - mySlider.width + wrapMode: Text.WordWrap; + } + + Slider { + id:mySlider + stepSize:1 + valueIndicatorVisible: true + minimumValue:12 + maximumValue:30 + width:300 + onPressedChanged: if (!pressed) { parent.valueChanged() } + orientation: Qt.Horizontal + } +}