Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.1
- import com.meego 1.0
- Sheet { // TODO: make this work on portrait
- id: settingsSheet
- acceptButtonText: "Save"
- rejectButtonText: ""
- content: Flickable {
- anchors.fill: parent
- anchors.leftMargin: 10
- anchors.topMargin: 10
- flickableDirection: Flickable.VerticalFlick
- Column {
- anchors.top: parent.top
- anchors.fill: parent
- spacing: 10
- CheckBox {
- id: askQuitCheckBox
- text: "Ask before quitting"
- checked: appSettings.askQuit
- }
- Binding {
- target: appSettings
- property: "askQuit"
- value: askQuitCheckBox.checked
- }
- CheckBox {
- id: autoSaveOnQuitCheckBox
- text: "Preserve state when you quit"
- checked: appSettings.autoSaveOnQuit
- }
- Binding {
- target: appSettings
- property: "autoSaveOnQuit"
- value: autoSaveOnQuitCheckBox.checked
- }
- Label {
- text: "Number of rows"
- }
- Slider {
- id: rowsSlider
- minimumValue: 1
- maximumValue: 10
- value: appSettings.rows
- stepSize: 1
- valueIndicatorVisible: true
- }
- Binding {
- target: appSettings
- property: "rows"
- value: rowsSlider.value
- }
- Label {
- text: "Number of columns"
- }
- Slider {
- id: columnsSlider
- minimumValue: 1
- maximumValue: 10
- value: appSettings.columns
- stepSize: 1
- valueIndicatorVisible: true
- }
- Binding {
- target: appSettings
- property: "columns"
- value: columnsSlider.value
- }
- }
- }
- onAccepted: {} // TODO
- onRejected: {} // TODO
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement