import QtQuick 1.0
import org.hildon.components 1.0
import org.hildon.settings 1.0
Dialog {
id: dialog
title: qsTr("GConf Example")
id: gconfText
key: "/apps/QtComponentsHildon/SettingsExample/text"
}
id: gconfNumber
key: "/apps/QtComponentsHildon/SettingsExample/number"
}
Column {
id: column
anchors {
left: parent.left
right: button.left
bottom: parent.bottom
}
width: parent.width
text: qsTr("Text")
}
id: textField
width: parent.width
text: gconfText.value
}
id: numberButton
width: parent.width
text: qsTr("Number")
id: numberSelector
model: 10
currentIndex: gconfNumber.value
}
}
}
id: button
anchors {
right: parent.right
bottom: parent.bottom
}
text: qsTr("Done")
onClicked: dialog.accept()
}
onAccepted: {
gconfText.value = textField.text;
gconfNumber.value = numberSelector.currentIndex;
}
Component.onCompleted: open()
}