psa: added automatic updates
[feedingit] / psa_harmattan / feedingit / qml / SwitchSetting.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 checked: themeSwitch.checked
8     signal switched()
9
10     Text {
11         id: themeText
12         color: settings.mainTextColour;
13         font.pointSize: settings.mainTextSize
14         width: parent.width - themeSwitch.width
15         wrapMode: Text.WordWrap;
16     }
17
18     Switch {
19         id: themeSwitch
20
21         onCheckedChanged: {
22             switched()
23             //theme.inverted = checked
24         }
25     }
26 }