Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SilicaListView {
- delegate: Column{
- property string defaultSensor:
- QmlSensors.defaultSensorForType(modelData)
- width: parent.width
- SectionHeader { text: modelData }
- Repeater {
- model: QmlSensors.sensorsForType(modelData)
- delegate: Label {
- text: modelData + (modelData === defaultSensor ?
- " " + qsTr("[default]"): "")
- x: Theme.horizontalPageMargin
- color: Theme.highlightColor
- }
- }
- }
- model: QmlSensors.sensorTypes()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement