import QtQuick 1.0
import org.hildon.components 1.0
Window {
id: window
title: qsTr("Selectors Example")
visible: true
Column {
id: column
anchors.centerIn: parent
width: 300
width: parent.width
text: qsTr("Select from list")
model: ListModel {
ListElement { name: "One"; value: 1 }
ListElement { name: "Two"; value: 2 }
ListElement { name: "Three"; value: 3 }
ListElement { name: "Four"; value: 4 }
ListElement { name: "Five"; value: 5 }
}
textRole: "name"
}
}
width: parent.width
text: qsTr("Select date")
}
width: parent.width
text: qsTr("Select time")
}
width: parent.width
text: qsTr("Select a value")
id: selector
Column {
anchors {
left: parent.left
right: parent.right
bottom: parent.bottom
}
Repeater {
id: repeater
model: 3
width: parent.width
text: index + 1
onClicked: {
selector.selected(index + 1);
selector.accept();
}
}
}
}
}
}
}
}